Skip to content

Commit

Permalink
Script(chore): use sphin-notes/pages@v3
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverRainZ committed Feb 11, 2024
1 parent 9fddfc8 commit 41f82ca
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 41f82ca

Please sign in to comment.