Skip to content

🔀 Merge pull request #7 from LionessLilo/main #61

🔀 Merge pull request #7 from LionessLilo/main

🔀 Merge pull request #7 from LionessLilo/main #61

Workflow file for this run

name: NodeJS with Webpack
permissions:
contents: write
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Build
run: |
cd assistantnms_web
npm ci
npm run build
- name: Remove extra files
run: |
cd assistantnms_web
echo "/node_modules" > .gitignore
echo "/seo" >> .gitignore
- uses: JamesIves/[email protected]
name: Deploy to GitHub Pages
if: github.event_name != 'pull_request'
with:
folder: assistantnms_web # The folder the action should deploy.