Skip to content

Commit 98e6351

Browse files
committed
Add github.token to download-artifact
1 parent f54773b commit 98e6351

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ jobs:
3131
- name: Build pages
3232
env:
3333
MKDOCS_GIT_COMMITTERS_BRANCH: ${{ github.ref_name }}
34-
MKDOCS_GIT_COMMITTERS_APIKEY: ${{ secrets.GITHUB_TOKEN }}
35-
MKDOCS_ENABLE_GIT_REVISION_DATE: ${{ secrets.GITHUB_TOKEN && 'True' || 'False' }}
36-
MKDOCS_ENABLE_GIT_COMMITTERS: ${{ secrets.GITHUB_TOKEN && 'True' || 'False' }}
34+
MKDOCS_GIT_COMMITTERS_APIKEY: ${{ github.token }}
35+
MKDOCS_ENABLE_GIT_REVISION_DATE: ${{ github.token && 'True' || 'False' }}
36+
MKDOCS_ENABLE_GIT_COMMITTERS: ${{ github.token && 'True' || 'False' }}
3737
run: |
3838
mkdocs build --strict
3939
- name: Upload build pages as artifact

.github/workflows/deploy-prod.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
uses: actions/download-artifact@v4
1616
with:
1717
run-id: ${{ github.event.workflow_run.id }}
18+
github-token: ${{ github.token }}
1819
name: page-build
1920
path: public
2021

@@ -36,7 +37,7 @@ jobs:
3637
- uses: FirebaseExtended/action-hosting-deploy@v0
3738
id: firebase-deploy
3839
with:
39-
repoToken: ${{ secrets.GITHUB_TOKEN }}
40+
repoToken: ${{ github.token }}
4041
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
4142
projectId: cp-algorithms
4243
channelId: live
@@ -52,6 +53,7 @@ jobs:
5253
uses: actions/download-artifact@v4
5354
with:
5455
run-id: ${{ github.event.workflow_run.id }}
56+
github-token: ${{ github.token }}
5557
name: page-build
5658
path: public
5759

@@ -63,7 +65,7 @@ jobs:
6365
- name: Deploy to gh-pages
6466
uses: peaceiris/actions-gh-pages@v3
6567
with:
66-
github_token: ${{ secrets.GITHUB_TOKEN }}
68+
github_token: ${{ github.token }}
6769
publish_dir: ./public
6870
publish_branch: gh-pages
6971
destination_dir: ${{ github.event.pull_request.number || 'main' }}/

0 commit comments

Comments
 (0)