-
Notifications
You must be signed in to change notification settings - Fork 64
39 lines (34 loc) · 1.03 KB
/
docs.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
38
39
name: docs
on:
push:
branches:
- docs/*
tags:
- "v[0-9]+.*"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout source files
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 🐍
uses: actions/setup-python@v5
with:
python-version: '3.10'
architecture: x64
cache: 'pip'
cache-dependency-path: 'setup.cfg'
- name: Install Python dependencies
run: pip install .[doc]
- name: Configure Git user
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
- name: Deploy with mike (tag_ 🚀
if: ${{ github.ref_type == 'tag' }}
run: mike deploy --push --rebase --update-aliases ${{ github.ref_name }} latest
- name: Deploy with mike (branch) 🚀
if: ${{ github.ref_type == 'branch' }}
run: mike deploy --push --rebase docs-latest