From 48651bf7d91fc19e9e75c464b6a52eeb35cb177d Mon Sep 17 00:00:00 2001 From: bckelley <> Date: Thu, 31 Oct 2024 16:00:15 -0500 Subject: [PATCH] fixed deploy --- .github/workflows/deploy.yml | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 042481d..24bff38 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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