Skip to content

Commit

Permalink
Merge pull request #130 from orgua/dev
Browse files Browse the repository at this point in the history
Update sphinx_to_pages.yml
  • Loading branch information
orgua authored Jul 9, 2023
2 parents 6416020 + d8e7d47 commit 68e9392
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions .github/workflows/sphinx_to_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,35 @@ on:
jobs:
build:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
steps:

- name: Set up Python 🐍
uses: actions/setup-python@v4
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v3
with:
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo

# - name: Run Pre-Commit Tests πŸ§ͺ
# uses: pre-commit/[email protected]

- name: Install dependencies πŸ”§
run: pip3 install sphinx sphinxawesome-theme sphinx-sitemap myst-parser

# - name: Configure GitHub Pages
# uses: actions/configure-pages@v3

- name: Build Documentation 🧱
uses: sphinx-notes/pages@v3
with:
checkout: false
publish: false
checkout: true
publish: true
documentation_path: "./docs/source"

- name: Push changes πŸ“Œ
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: pages
force: true
# - name: Run Pre-Commit Tests πŸ§ͺ
# uses: pre-commit/[email protected]

# - name: Push changes πŸ“Œ
# uses: ad-m/github-push-action@master
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# branch: pages
# force: true

0 comments on commit 68e9392

Please sign in to comment.