forked from AllTheMods/alltheguides
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (31 loc) · 918 Bytes
/
publish.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
name: Deploy to Github Pages
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
env:
ENABLE_STRICT: true
ENABLE_MINIFY: true
ENABLE_REMOVE_COMMENTS: true
ENABLE_GIT_AUTHORS: true
ENABLE_GIT_COMMITTERS: true
ENABLE_GIT_REVISION_DATE: true
ENABLE_STRICT_GIT_AUTHORS: true
ENABLE_STRICT_GIT_REVISION_DATE: true
ENABLE_OFFLINE: true
steps:
- uses: actions/checkout@v4
with:
ref: mkdocs
fetch-depth: 0
- uses: astral-sh/setup-uv@v2
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
- run: uv sync
- run: git config user.name 'github-actions[bot]' && git config user.email 'github-actions[bot]@users.noreply.github.com'
- run: uv run mkdocs gh-deploy