From 37d176f67ddd6b6e112e1151dadf40737a68523b Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Thu, 23 Jul 2020 17:13:04 -0400 Subject: [PATCH] Use ACCESS_TOKEN for deployment --- .github/workflows/docs.yml | 4 +++- .github/workflows/publish.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index f27bf128c..335314b05 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -12,6 +12,8 @@ jobs: steps: - name: Checkout the code uses: actions/checkout@v2 + with: + persist-credentials: false - name: Install latest nightly uses: actions-rs/toolchain@v1 @@ -31,7 +33,7 @@ jobs: - name: Deploy the docs uses: JamesIves/github-pages-deploy-action@releases/v3 with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ACCESS_TOKEN: ${{ secrets.WEB_DEPLOY }} FOLDER: target/doc REPOSITORY_NAME: gfx-rs/wgpu-rs.github.io BRANCH: master diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f5588724d..1eb22126c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,6 +15,8 @@ jobs: steps: - name: Checkout the code uses: actions/checkout@v2 + with: + persist-credentials: false - name: Install Rust WASM toolchain uses: actions-rs/toolchain@v1 @@ -38,7 +40,7 @@ jobs: - name: Deploy the examples uses: JamesIves/github-pages-deploy-action@releases/v3 with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ACCESS_TOKEN: ${{ secrets.WEB_DEPLOY }} FOLDER: target/generated REPOSITORY_NAME: gfx-rs/wgpu-rs.github.io BRANCH: master