mirror of
https://github.com/bckelley/terminal-portfolio.git
synced 2026-08-24 03:24:13 -05:00
updated workflow
This commit is contained in:
@@ -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
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user