-
Notifications
You must be signed in to change notification settings - Fork 11
43 lines (36 loc) · 927 Bytes
/
docs-deploy.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
34
35
36
37
38
39
40
41
42
43
name: Deploy MkDocs
on:
push:
branches:
- main
permissions:
id-token: write
pages: write
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: main
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Set timezone to UTC
run: echo "TZ=UTC" >> $GITHUB_ENV
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install --with=docs --no-interaction --no-ansi
- name: Deploy docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name "ci-bot"
git config --global user.email "ci-bot@puepy.dev"
poetry run mike deploy --push -u development --allow-empty