File tree Expand file tree Collapse file tree 4 files changed +92
-8
lines changed
Expand file tree Collapse file tree 4 files changed +92
-8
lines changed Original file line number Diff line number Diff line change 2222 - name : Install adapt dependencies
2323 run : |
2424 python -m pip install --upgrade pip
25- pip install pytest pytest-cov codecov
2625 pip install -r requirements.txt
2726 - name : Install adapt
2827 run : |
3534 mv -v docs/html/* docs/
3635 sudo rm -r -f docs/html
3736 touch .nojekyll
38- - name : Push changes to remote
39- run : |
40- git config --global user.name "github-actions[bot]"
41- git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
42- git add docs
43- git commit -m "Update docs"
44- git push
4537 - uses : actions/upload-artifact@v1
4638 with :
4739 name : DocumentationHTML
Original file line number Diff line number Diff line change 1+ name : " Publish docs online"
2+
3+ on :
4+ release :
5+ types : [created]
6+
7+ jobs :
8+ docs :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v2
12+ - name : Set up Python 3.8
13+ uses : actions/setup-python@v2
14+ with :
15+ python-version : ' 3.8'
16+ - name : Install doc dependencies
17+ run : |
18+ sudo apt install pandoc
19+ python -m pip install --upgrade pip
20+ pip install sphinx numpydoc nbsphinx sphinx_gallery sphinx_rtd_theme
21+ - name : Install adapt dependencies
22+ run : |
23+ python -m pip install --upgrade pip
24+ pip install -r requirements.txt
25+ - name : Install adapt
26+ run : |
27+ pip install -e .
28+ - name : Build documentation
29+ run : |
30+ sudo rm -r -f docs/*
31+ make html
32+ sudo rm -r -f docs/doctrees
33+ mv -v docs/html/* docs/
34+ sudo rm -r -f docs/html
35+ touch .nojekyll
36+ - name : Push changes to remote
37+ run : |
38+ git config --global user.name "github-actions[bot]"
39+ git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
40+ git add docs
41+ git commit -m "Update docs"
42+ git push
Original file line number Diff line number Diff line change 1+ name : Release drafter
2+
3+ on :
4+ push :
5+ # branches to consider in the event; optional, defaults to all
6+ branches :
7+ - master
8+
9+ jobs :
10+ update_release_draft :
11+ runs-on : ubuntu-latest
12+ steps :
13+ # Drafts your next Release notes as Pull Requests are merged into "master"
14+ - uses : release-drafter/release-drafter@v5
15+ # with:
16+ # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
17+ # config-name: my-config.yml
18+ env :
19+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : Upload package to Pypi
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ overrideVersion :
7+ description : Manually force a version
8+
9+ env :
10+ CIBW_BUILD_VERBOSITY : 1
11+ SETUPTOOLS_SCM_PRETEND_VERSION : ${{ github.event.inputs.overrideVersion }}
12+
13+ jobs :
14+ make_sdist :
15+ name : Make SDist
16+ runs-on : ubuntu-latest
17+ steps :
18+ - uses : actions/checkout@v1
19+ - name : Setup Python
20+ uses : actions/setup-python@v2
21+ with :
22+ python-version : ' 3.8'
23+ - name : Install deps
24+ run : python -m pip install build twine
25+ - name : Build SDist
26+ run : python -m build --sdist
27+ - uses : actions/upload-artifact@v2
28+ with :
29+ path : dist/*.tar.gz
30+ - name : Check metadata
31+ run : twine check dist/*
You can’t perform that action at this time.
0 commit comments