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
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
- name: Build your website
|
||||
- name: Build website
|
||||
run: npm start
|
||||
- name: Copy files to deploy branch
|
||||
run: |
|
||||
mkdir -p public
|
||||
cp -r ./* public
|
||||
- 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
|
||||
- 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
|
||||
|
||||
Reference in New Issue
Block a user