diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7ab20ab..22adfcd 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,10 +1,8 @@ name: Deploy to GitHub Pages - on: push: branches: - main - jobs: build-and-deploy: runs-on: ubuntu-latest @@ -18,10 +16,12 @@ jobs: git config user.email "${{ secrets.GITHUB_ACTOR }}" - name: Build website run: npm run deploy - - name: Commit and push to deploy branch + - name: Commit and push to main 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 + git push origin HEAD:main \ + --user ${{ secrets.GITHUB_ACTOR }} \ + --password ${{ secrets.GITHUB_TOKEN }}