updated workflow

This commit is contained in:
bckelley
2024-10-31 16:31:00 -05:00
parent 48651bf7d9
commit 0abfaa807b
2 changed files with 10 additions and 8 deletions
+8 -7
View File
@@ -13,10 +13,11 @@ jobs:
- name: Install dependencies
run: npm install
- name: Build website
run: npm start
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./src # Assuming your build output is in the 'build' directory
publish_branch: main
run: npm run deploy
- name: Commit and push to deploy branch
run: |
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
git add -A
git commit -m "Deploy to GitHub Pages"
git push origin HEAD:deploy
+2 -1
View File
@@ -3,7 +3,8 @@
"version": "1.0.0",
"main": "app.js",
"scripts": {
"start": "node app.js"
"start": "node app.js",
"deploy": "gh-pages -d src"
},
"keywords": [],
"author": "bckelley",