Skip to content

Commit

Permalink
configure GITHUB_TOKEN for publish job
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Oct 29, 2023
1 parent 26b5c3e commit 1bd7026
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
run: npm i
- name: Build and deploy to GitHub Pages
run: |
git config --local user.name "GitHub Pages Publisher"
git config --local user.email "${{ github.actor }}@users.noreply.github.com"
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
git config --local user.name github-actions-bot
git config --local user.email ${{ github.actor }}@users.noreply.github.com
npx gulp deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1bd7026

Please sign in to comment.