generated from FabricMC/fabric-example-mod
-
-
Notifications
You must be signed in to change notification settings - Fork 44
33 lines (31 loc) · 1.01 KB
/
mkdocs.yml
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
name: Docs new version release
on:
workflow_dispatch:
jobs:
upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- run: pip install mkdocs-material
- run: pip install mike
- run: pip install mkdocs-awesome-pages-plugin
- name: Setup doc deploy
run: |
git config --global user.name samo_lego
git config --global user.email [email protected]
- id: releasetag
uses: pozetroninc/github-action-get-latest-release@master
with:
repository: ${{ github.repository }}
- name: Release docs website
run: |
mike delete --push latest
mike deploy --push --update-aliases ${{ steps.releasetag.outputs.release }} latest
echo "Setting default: ${{ steps.releasetag.outputs.release }}"
mike set-default ${{ steps.releasetag.outputs.release }} --push