From 41f82ca0bb1ba64d6ef016c63d4eeee8f9939f11 Mon Sep 17 00:00:00 2001 From: Shengyu Zhang Date: Sun, 11 Feb 2024 14:21:14 +0800 Subject: [PATCH] Script(chore): use sphin-notes/pages@v3 --- .github/workflows/pages.yml | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index c9f49912..98ad1db0 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -8,19 +8,12 @@ on: jobs: build: runs-on: ubuntu-20.04 + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + permissions: + pages: write + id-token: write steps: - - name: Setup python - uses: actions/setup-python@v2 - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 # otherwise, you will failed to push refs to dest repo - - name: Build and Commit - uses: sphinx-notes/pages@v2 - with: - requirements_path: docs/requirements.txt - - name: Push changes - uses: ad-m/github-push-action@master - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - branch: gh-pages + - id: deployment + uses: sphinx-notes/pages@v3