2020-07-10 11:30:26 +00:00
|
|
|
name: Post Release
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [published]
|
2021-09-20 15:44:54 +00:00
|
|
|
workflow_dispatch:
|
2020-07-10 11:30:26 +00:00
|
|
|
jobs:
|
2020-07-16 14:06:01 +00:00
|
|
|
docs:
|
2020-07-10 11:30:26 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-07-15 21:55:36 +00:00
|
|
|
- name: Checkout repo
|
2023-03-03 14:36:36 +00:00
|
|
|
uses: actions/checkout@v3
|
2020-07-15 21:55:36 +00:00
|
|
|
- name: Checkout wiki
|
2023-03-03 14:36:36 +00:00
|
|
|
uses: actions/checkout@v3
|
2020-07-10 11:30:26 +00:00
|
|
|
with:
|
|
|
|
repository: ${{ github.repository }}.wiki
|
2020-07-15 21:55:36 +00:00
|
|
|
path: wiki
|
|
|
|
- name: Checkout docs
|
2023-03-03 14:36:36 +00:00
|
|
|
uses: actions/checkout@v3
|
2020-07-15 21:55:36 +00:00
|
|
|
with:
|
|
|
|
repository: ${{ github.repository }}.github.io
|
|
|
|
path: docs
|
|
|
|
token: ${{ secrets.GH_TOKEN }}
|
2023-03-03 14:36:36 +00:00
|
|
|
- uses: actions/setup-python@v4
|
2020-07-15 21:55:36 +00:00
|
|
|
with:
|
|
|
|
python-version: '3.x'
|
|
|
|
- name: Install
|
|
|
|
run: |
|
2020-07-15 22:05:39 +00:00
|
|
|
pip install -U wheel
|
2020-07-16 14:06:01 +00:00
|
|
|
pip install -U -r ./docs/requirements.txt
|
|
|
|
git config --global user.email "$GIT_AUTHOR_EMAIL"
|
|
|
|
git config --global user.name "$GIT_AUTHOR_NAME"
|
|
|
|
env:
|
|
|
|
GIT_AUTHOR_NAME: ${{ github.event.sender.login }}
|
|
|
|
GIT_AUTHOR_EMAIL: ${{ github.event.sender.login }}@users.noreply.github.com
|
2020-07-15 21:55:36 +00:00
|
|
|
- name: Update Wiki Releases
|
2020-07-10 11:30:26 +00:00
|
|
|
run: |
|
2020-07-15 21:55:36 +00:00
|
|
|
pushd wiki
|
2020-07-10 11:30:26 +00:00
|
|
|
make
|
2021-09-20 15:44:54 +00:00
|
|
|
git commit -a -m "update release notes to ${GITHUB_REF#refs/tags/}" || :
|
2020-07-10 11:30:26 +00:00
|
|
|
git push
|
2020-07-15 21:55:36 +00:00
|
|
|
popd
|
2021-09-19 15:26:02 +00:00
|
|
|
- run: make -C docs build
|
2021-09-20 15:44:54 +00:00
|
|
|
- uses: casperdcl/push-dir@v1
|
2021-09-19 15:26:02 +00:00
|
|
|
with:
|
|
|
|
message: update static site
|
|
|
|
branch: gh-pages
|
|
|
|
dir: docs/build/docs/_site
|
|
|
|
nojekyll: true
|
|
|
|
name: tqdm[bot]
|
|
|
|
email: 68520887+tqdm-bot@users.noreply.github.com
|