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
|
- 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
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user