Skip to content

Commit

Permalink
Build app before deploy.
Browse files Browse the repository at this point in the history
  • Loading branch information
emmiegit committed Nov 22, 2023
1 parent 4a30a35 commit 8b8aaac
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/web-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ jobs:
path: ./node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package.json') }}

- name: Build
- name: Build app
run: npm run build
13 changes: 12 additions & 1 deletion .github/workflows/web-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,21 @@ jobs:
- name: Setup Pages
uses: actions/configure-pages@v3

- name: Node.js Setup
uses: actions/setup-node@v3
with:
node-version: '21.x'

- name: NPM Dependencies
run: npm ci

- name: Build app
run: npm run build

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: web
path: web/dist

- name: Deploy to GitHub Pages
id: deployment
Expand Down

0 comments on commit 8b8aaac

Please sign in to comment.