mirror of
https://github.com/bckelley/terminal-portfolio.git
synced 2026-08-24 03:24:13 -05:00
fixed deploy
This commit is contained in:
@@ -6,22 +6,17 @@ on:
|
|||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
build-and-deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install
|
run: npm install
|
||||||
- name: Build your website
|
- name: Build website
|
||||||
run: npm start
|
run: npm start
|
||||||
- name: Copy files to deploy branch
|
- name: Deploy to GitHub Pages
|
||||||
run: |
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
mkdir -p public
|
with:
|
||||||
cp -r ./* public
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Commit and push to deploy branch
|
publish_dir: ./src # Assuming your build output is in the 'build' directory
|
||||||
run: |
|
publish_branch: main
|
||||||
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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user