fixed deploy

This commit is contained in:
bckelley
2024-10-31 16:00:15 -05:00
parent 6a7da746c5
commit 48651bf7d9
+8 -13
View File
@@ -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