From 589c13c3d0437eb3a1ac6852b56883c3d628f69c Mon Sep 17 00:00:00 2001 From: qchempku2017 Date: Thu, 21 Sep 2023 14:21:15 -0700 Subject: [PATCH] DEV: switch to github_token authentication in docs.yml. --- .github/workflows/docs.yml | 4 ++-- .github/workflows/lint.yml | 4 ++-- .github/workflows/release.yml | 5 +++-- .github/workflows/update-precommit.yaml | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 6915dc8..76f7ca6 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install pandoc run: sudo apt-get install pandoc @@ -29,5 +29,5 @@ jobs: - name: Deploy uses: peaceiris/actions-gh-pages@v3 with: - deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} + github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./docs_build diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 185ef80..0d84624 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -20,8 +20,8 @@ jobs: max-parallel: 6 steps: - - uses: actions/checkout@v3 - - name: Set up Python 3.9 + - uses: actions/checkout@v4 + - name: Set up Python uses: actions/setup-python@v4 with: python-version: 3.9 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6e728cf..492f088 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,12 +27,13 @@ jobs: needs: test uses: ./.github/workflows/build.yml - release-docs: + docs: needs: test uses: ./.github/workflows/docs.yml + secrets: inherit release-pypi: - needs: [build, docs] + needs: [build] runs-on: ubuntu-latest if: github.event.inputs.release-pypi == 'true' diff --git a/.github/workflows/update-precommit.yaml b/.github/workflows/update-precommit.yaml index 6695742..a387687 100644 --- a/.github/workflows/update-precommit.yaml +++ b/.github/workflows/update-precommit.yaml @@ -9,7 +9,7 @@ jobs: auto-update: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v4