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 - name: Install dependencies
run: npm install run: npm install
- name: Build website - name: Build website
run: npm start run: npm run deploy
- name: Deploy to GitHub Pages - name: Commit and push to deploy branch
uses: peaceiris/actions-gh-pages@v3 run: |
with: git config user.name "GitHub Actions"
github_token: ${{ secrets.GITHUB_TOKEN }} git config user.email "actions@github.com"
publish_dir: ./src # Assuming your build output is in the 'build' directory git add -A
publish_branch: main git commit -m "Deploy to GitHub Pages"
git push origin HEAD:deploy
+2 -1
View File
@@ -3,7 +3,8 @@
"version": "1.0.0", "version": "1.0.0",
"main": "app.js", "main": "app.js",
"scripts": { "scripts": {
"start": "node app.js" "start": "node app.js",
"deploy": "gh-pages -d src"
}, },
"keywords": [], "keywords": [],
"author": "bckelley", "author": "bckelley",