-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a5d61d3
commit 7dd8aef
Showing
2 changed files
with
12 additions
and
20 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
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 |
---|---|---|
@@ -1,26 +1,18 @@ | ||
name: Deploy Sphinx documentation to Pages | ||
|
||
on: [pull_request] | ||
#push: | ||
#branches: [main] # branch to trigger deployment | ||
|
||
name: Pages | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
build: | ||
pages: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- id: deployment | ||
uses: sphinx-notes/pages@v3 | ||
with: | ||
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo | ||
|
||
- name: Build and Commit | ||
uses: sphinx-notes/pages@master | ||
with: | ||
documentation_path: docs | ||
|
||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
publish: false | ||
- uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: gh-pages | ||
publish_dir: ${{ steps.deployment.outputs.artifact }} |