Skip to content

Commit ad5f5f8

Browse files
committed
Set NETLIFY_AUTH_TOKEN, add Github Pages deploy
1 parent 5bb9272 commit ad5f5f8

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,16 @@ jobs:
4343
index.html
4444
matf.css
4545
46-
# Deploy
46+
# Deploy to Netlify
4747
- name: Deploy to Netlify
48+
env:
49+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_TOKEN }}
4850
run: |
49-
npx netlify-cli deploy --prod --token ${{ secrets.NETLIFY_TOKEN }} --site matfdraft --dir ./
51+
npx netlify-cli deploy --prod --site matfdraft --dir ./
52+
53+
# Deploy to Github Pages
54+
- name: Deploy to GitHub Pages
55+
uses: peaceiris/actions-gh-pages@v3
56+
with:
57+
github_token: ${{ secrets.GITHUB_TOKEN }}
58+
publish_dir: ./

0 commit comments

Comments
 (0)