Skip to content

Commit

Permalink
cd: Fix env var reference
Browse files Browse the repository at this point in the history
Updates how `GITHUB_TOKEN` and `GITHUB_REPOSITORY` are referenced to fix the build.

tschaub/gh-pages#345 (comment) used for inspiration.
  • Loading branch information
akash1810 authored Oct 30, 2023
1 parent 1c6493b commit b6f24b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,7 @@ jobs:
- name: Release docs
if: (github.ref == 'refs/heads/main')
run: |
git remote set-url origin https://git:${{secrets.GITHUB_TOKEN}}@github.com/${{vars.GITHUB_REPOSITORY}}.git
git remote set-url origin https://git:${{GITHUB_TOKEN}}@github.com/${{GITHUB_REPOSITORY}}.git
npm run release:docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b6f24b0

Please sign in to comment.