-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (34 loc) · 844 Bytes
/
docs.yml
File metadata and controls
38 lines (34 loc) · 844 Bytes
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
38
name: Docs
on:
push:
branches:
- main
- mkdocs
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
cache: pip
python-version: '3.11'
- run: make docs-deps
- name: Configure the git user
run: |
git config user.name "Stealth Rocket"
git config user.email "bot@stealthrocket.tech"
- name: Build main branch
if: ${{ github.ref_name == 'main' }}
run: |
mike deploy --push main
- name: Build tagged version
if: ${{ github.ref_name != 'main' }}
run: |
mike deploy --push --update-aliases ${{ github.ref_name }} latest