forked from sharppy/SHARPpy
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
7 changed files
with
150 additions
and
159 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 |
---|---|---|
@@ -1,58 +1,58 @@ | ||
name: documentation | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
# paths: | ||
# - docs/** | ||
|
||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 | ||
|
||
# This off the shelf is faster, but doesn't support autodoc/sphinx_gallery | ||
# - name: Build sphinx docs | ||
# uses: ammaraskar/sphinx-action@master | ||
# with: | ||
# docs-folder: "docs/" | ||
|
||
# Manual install - works but takes longer | ||
- name: Install Conda and Environment | ||
uses: ./.github/actions/install-conda | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Build documents | ||
shell: bash -l {0} | ||
run: | | ||
conda activate devel | ||
pip install -e . | ||
cd docs | ||
cp ../LICENSE.rst ../docs/source/license.rst | ||
cp ../CONTRIBUTING.rst ../docs/source/contributing.rst | ||
cp ../CHANGELOG.rst ../docs/source/changelog.rst | ||
make html | ||
touch build/html/.nojekyll | ||
cd .. | ||
- name: Deploy docs to gh-pages | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: docs/build/html/ | ||
clean: true | ||
branch: gh-pages | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
clean-exclude: | | ||
.nojekyll | ||
*.md | ||
# name: documentation | ||
# on: | ||
# push: | ||
# branches: | ||
# - main | ||
# - master | ||
# # paths: | ||
# # - docs/** | ||
|
||
# jobs: | ||
# docs: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout source | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# fetch-depth: 1 | ||
|
||
# # This off the shelf is faster, but doesn't support autodoc/sphinx_gallery | ||
# # - name: Build sphinx docs | ||
# # uses: ammaraskar/sphinx-action@master | ||
# # with: | ||
# # docs-folder: "docs/" | ||
|
||
# # Manual install - works but takes longer | ||
# - name: Install Conda and Environment | ||
# uses: ./.github/actions/install-conda | ||
# with: | ||
# python-version: 3.9 | ||
|
||
# - name: Build documents | ||
# shell: bash -l {0} | ||
# run: | | ||
# conda activate devel | ||
# pip install -e . | ||
|
||
# cd docs | ||
|
||
# cp ../LICENSE.rst ../docs/source/license.rst | ||
# cp ../CONTRIBUTING.rst ../docs/source/contributing.rst | ||
# cp ../CHANGELOG.rst ../docs/source/changelog.rst | ||
|
||
# make html | ||
|
||
# touch build/html/.nojekyll | ||
|
||
# cd .. | ||
|
||
# - name: Deploy docs to gh-pages | ||
# uses: JamesIves/github-pages-deploy-action@v4 | ||
# with: | ||
# folder: docs/build/html/ | ||
# clean: true | ||
# branch: gh-pages | ||
# token: ${{ secrets.GITHUB_TOKEN }} | ||
# clean-exclude: | | ||
# .nojekyll | ||
# *.md |
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
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
Oops, something went wrong.