Skip to content

Commit d2a31ab

Browse files
committed
remove token for deploy stagins
1 parent 74f895f commit d2a31ab

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/staging.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ jobs:
3333
- name: Checkout
3434
uses: actions/checkout@v2
3535
with:
36-
repository: 'redhat-developer-docs/knative-tutorial-staging'
37-
token: "${{ secrets.GITHUB_PAT }}"
36+
repository: redhat-developer-docs/knative-tutorial-staging
3837
ref: 'gh-pages'
3938
path: knative-tutorial-staging
4039
- name: "List folder"
@@ -44,11 +43,11 @@ jobs:
4443
uses: actions/download-artifact@v1
4544
with:
4645
name: site
47-
path: "${{ github.workspace }}/${{ env.SITE_DIR }}"
46+
path: "${{ github.workspace }}/knative-tutorial-staging/${{ env.SITE_DIR }}"
4847
- name: Deploy to GitHub Pages
4948
uses: JamesIves/github-pages-deploy-action@3.2.1
5049
with:
51-
GITHUB_TOKEN: " ${{ secrets.GITHUB_PAT }}"
50+
GITHUB_TOKEN: " ${{ github.token }}"
5251
FOLDER: "${{ env.SITE_DIR }}"
5352
BRANCH: 'gh-pages'
5453
COMMIT_MESSAGE: "[Staging] Publish Documentation for ${{ github.sha }}"

0 commit comments

Comments
 (0)