Skip to content

Commit 34fdf38

Browse files
committed
ci: update GitHub Actions workflows and documentation dependency
- Migrate custom GitHub Actions from `liblaf/actions` to `liblaf/actions-ts` distribution - Replace mkdocs gh-deploy with JamesIves/github-pages-deploy-action for more reliable documentation deployment - Update liblaf-mkdocs-preset dependency from 0.1 to 0.2 for documentation builds - Standardize token usage across workflows using github.token These changes improve CI reliability and maintainability while ensuring consistent documentation deployment processes.
1 parent 565e314 commit 34fdf38

File tree

5 files changed

+12
-14
lines changed

5 files changed

+12
-14
lines changed

template/.github/workflows/bench.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- name: Checkout
5656
uses: actions/checkout@v5
5757
- name: Setup Python
58-
uses: liblaf/actions/setup-python@main
58+
uses: liblaf/actions-ts/setup-python@dist
5959
- name: Install Mise
6060
uses: jdx/mise-action@v3
6161
- name: Bench

template/.github/workflows/docs.yaml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,28 +36,26 @@ jobs:
3636
if: needs.pre.outputs.should-skip != 'true'
3737
runs-on: ubuntu-latest
3838
steps:
39-
- id: auth
40-
name: Auth App
41-
uses: liblaf/actions/auth-app@main
4239
- name: Checkout
4340
uses: actions/checkout@v5
4441
with:
45-
token: ${{ steps.auth.outputs.token }}
4642
fetch-depth: 0
4743
- name: Setup Python
48-
uses: liblaf/actions/setup-python@main
44+
uses: liblaf/actions-ts/setup-python@dist
4945
- if: hashFiles('docs/scripts/pre-build.sh') != ''
5046
name: Pre-Build
5147
run: docs/scripts/pre-build.sh
52-
- if: ${{ github.ref != 'refs/heads/main' }}
53-
name: Build
48+
- name: Build
5449
run: mkdocs build
5550
- if: ${{ github.ref == 'refs/heads/main' }}
5651
name: Deploy
57-
run: mkdocs gh-deploy --force --no-history
52+
uses: JamesIves/github-pages-deploy-action@v4
53+
with:
54+
folder: site
55+
single-commit: true
5856
- if: ${{ github.ref == 'refs/heads/main' }}
5957
name: Setup GitHub Pages
60-
uses: liblaf/actions/setup-pages@main
58+
uses: liblaf/actions-ts/setup-pages@dist
6159
with:
62-
token: ${{ secrets.GH_PAT || steps.auth.outputs.token }}
60+
token: ${{ github.token }}
6361
continue-on-error: true

template/.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
name: ${{ needs.build.outputs.artifact-name }}
8282
path: dist/
8383
- name: Upload Release Assets
84-
uses: liblaf/actions/release@main
84+
uses: liblaf/actions-ts/release@dist
8585
with:
8686
files: dist/*
8787
tag: ${{ github.ref_name }}

template/.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
with:
6262
fetch-depth: 0 # I don't know why, but it is present in the official example
6363
- name: Setup Python
64-
uses: liblaf/actions/setup-python@main
64+
uses: liblaf/actions-ts/setup-python@dist
6565
- name: Install Mise
6666
uses: jdx/mise-action@v3
6767
- name: Test

template/pyproject.toml.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ dynamic = ["version"]
3838
[dependency-groups]
3939
build = ["check-wheel-contents>=0.6,<0.7", "hatch>=1,<2", "twine>=6,<7"]
4040
dev = ["icecream>=2,<3"]
41-
docs = ["liblaf-mkdocs-preset>=0.1,<0.2", "mkdocs>=1,<2"]
41+
docs = ["liblaf-mkdocs-preset>=0.2,<0.3", "mkdocs>=1,<2"]
4242
test = [
4343
"hypothesis>=6,<7",
4444
"pytest-codspeed>=4,<5",

0 commit comments

Comments
 (0)