Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,14 @@ jobs:
cache: npm
- run: npm ci
- run: npm run build
# Same tool as `npm run deploy`.
- run: npx gh-pages -d dist -u "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
# Same tool as `npm run deploy`. gh-pages clones the repo into a cache
# dir, which doesn't inherit checkout's auth header, so the token goes in
# the remote URL. The commit identity comes from git config because
# gh-pages' -u parser rejects the "[bot]" in an unquoted address.
- run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
npx gh-pages -d dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading