Post Release #53
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
name: Post Release | |
on: | |
release: | |
types: [published] | |
workflow_dispatch: | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Checkout wiki | |
uses: actions/checkout@v3 | |
with: | |
repository: ${{ github.repository }}.wiki | |
path: wiki | |
- name: Checkout docs | |
uses: actions/checkout@v3 | |
with: | |
repository: ${{ github.repository }}.github.io | |
path: docs | |
token: ${{ secrets.GH_TOKEN }} | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install | |
run: | | |
pip install -U wheel | |
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 | |
- name: Update Wiki Releases | |
run: | | |
pushd wiki | |
make | |
git commit -a -m "update release notes to ${GITHUB_REF#refs/tags/}" || : | |
git push | |
popd | |
- run: make -C docs build | |
- uses: casperdcl/push-dir@v1 | |
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 |