-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from orgua/dev
Update sphinx_to_pages.yml
- Loading branch information
Showing
1 changed file
with
20 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |