Skip to content

Commit bf2c113

Browse files
committed
.
1 parent 226531c commit bf2c113

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

.github/workflows/docs.yml

+21-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
name: Docs
2+
23
on:
34
push:
4-
branches: ["main"]
5-
tags: ["v*"]
5+
branches:
6+
- main
7+
tags:
8+
- v*
9+
paths-ignore:
10+
- LICENSE
11+
- README.md
12+
workflow_dispatch:
613

714
permissions:
815
contents: write
@@ -11,6 +18,16 @@ jobs:
1118
docs:
1219
runs-on: ubuntu-latest
1320
steps:
14-
- uses: actions-ext/yardang@main
21+
- uses: actions/checkout@v4
22+
- uses: actions/setup-python@v5
23+
with:
24+
python-version: '3.11'
25+
- run: pip install yardang
26+
- run: yardang build
27+
- name: Deploy
28+
uses: peaceiris/actions-gh-pages@v4
1529
with:
16-
token: ${{ secrets.GITHUB_TOKEN }}
30+
publish_branch: gh-pages
31+
github_token: ${{ secrets.GITHUB_TOKEN }}
32+
publish_dir: docs/html
33+
force_orphan: true

0 commit comments

Comments
 (0)