Skip to content

Commit 0def734

Browse files
Fix deploy workflow permissions and build steps
1 parent dc83ba1 commit 0def734

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
deploy:
1013
runs-on: ubuntu-latest
@@ -18,8 +21,16 @@ jobs:
1821
with:
1922
node-version: '18'
2023

24+
- name: Install and Build
25+
run: |
26+
cd frontend
27+
npm install
28+
npm run build
29+
env:
30+
CI: false
31+
2132
- name: Deploy to GitHub Pages
2233
uses: peaceiris/actions-gh-pages@v3
2334
with:
2435
github_token: ${{ secrets.GITHUB_TOKEN }}
25-
publish_dir: .
36+
publish_dir: ./frontend/dist

0 commit comments

Comments
 (0)