-
-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[skip-pytest]
- Loading branch information
Showing
2 changed files
with
10 additions
and
2 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 |
---|---|---|
|
@@ -18,6 +18,7 @@ env: | |
|
||
jobs: | ||
build_docs: | ||
if: (!contains(github.event.head_commit.message, '[skip-doc-build]')) || inputs.publish | ||
name: Build Documentation | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -79,14 +80,17 @@ jobs: | |
make clean | ||
make html | ||
- name: Publish docs | ||
if: (github.event_name == 'release') || inputs.publish | ||
- name: Prepare docs for publishing | ||
run: | | ||
cd docs/_build/html | ||
git add . | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git commit -m "$GITHUB_REF_NAME ($GITHUB_JOB) ci release" | ||
- name: Publish docs | ||
if: (github.event_name == 'release') || inputs.publish | ||
run: | | ||
git push origin gh-pages --force | ||
- name: Upload docs as artifact | ||
|
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