-
Notifications
You must be signed in to change notification settings - Fork 4
37 lines (32 loc) · 955 Bytes
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Publish Release Documentation
on:
release:
types:
- published
jobs:
build:
name: Publish Release Documentation
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v3
- name: Install Dependencies
run: |
pip install --disable-pip-version-check -r mkdocs_requirements.txt
- name: Configure Git
run: |
git config --local user.name "Doc Deploy Bot"
git config --local user.email "[email protected]"
- name: mike deploy new version
env:
VERSION: ${{ github.event.release.tag_name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mike deploy --push --update-aliases "$VERSION" "latest"
mike set-default --push latest