tqdm/.github/workflows/post-release.yml

51 lines
1.4 KiB
YAML
Raw Normal View History

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:
- name: Checkout repo
2024-02-05 21:33:55 +00:00
uses: actions/checkout@v4
- name: Checkout wiki
2024-02-05 21:33:55 +00:00
uses: actions/checkout@v4
2020-07-10 11:30:26 +00:00
with:
repository: ${{ github.repository }}.wiki
path: wiki
- name: Checkout docs
2024-02-05 21:33:55 +00:00
uses: actions/checkout@v4
with:
repository: ${{ github.repository }}.github.io
path: docs
token: ${{ secrets.GH_TOKEN }}
2024-02-05 21:33:55 +00:00
- uses: actions/setup-python@v5
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
- name: Update Wiki Releases
2020-07-10 11:30:26 +00:00
run: |
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
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