Skip to content

Commit 3639d3a

Browse files
authored
fixing token issues
1 parent 3a1d3b9 commit 3639d3a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ jobs:
1515

1616
steps:
1717
- name: Checkout repository
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@v3
1919
with:
20-
token: ${{ secrets.GH_TOKEN }}
20+
token: ${{ secrets.GITHUB_TOKEN }}
2121

2222
- name: Set up Git
2323
run: |
24-
git remote set-url origin https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}.git
24+
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
2525
git config --global user.name "GitHub Actions"
2626
git config --global user.email "github-actions[bot]@users.noreply.github.com"
2727
2828
- name: Deploy to GitHub Pages
2929
run: |
3030
git checkout gh-pages || git checkout --orphan gh-pages
3131
git add .
32-
git commit -m "Deploy updates"
33-
git push origin gh-pages --force
32+
git commit -m "Deploy updates" || echo "No changes to commit"
33+
git push origin gh-pages

0 commit comments

Comments
 (0)