Skip to content

Commit 080f769

Browse files
authored
Merge pull request #64 from python-project-templates/tkp/rm
Update readme with action
2 parents 2d77c61 + 4cc731f commit 080f769

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ on:
33
push:
44
branches: ["main"]
55
tags: ["v*"]
6-
paths-ignore: ["LICENSE", "README.md"]
76
workflow_dispatch:
87
permissions:
98
contents: write

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,27 @@ Or from `conda-forge` via `conda`:
4141
conda install yardang -c conda-forge
4242
```
4343

44+
## GitHub Action
45+
46+
A convenient [github action](https://github.com/actions-ext/yardang) is provided to publish documentation automatically in CI.
47+
48+
```yaml
49+
name: Docs
50+
on:
51+
push:
52+
branches: ["main"]
53+
tags: ["v*"]
54+
workflow_dispatch:
55+
permissions:
56+
contents: write
57+
jobs:
58+
docs:
59+
runs-on: ubuntu-latest
60+
steps:
61+
- uses: actions-ext/yardang@main
62+
with:
63+
token: ${{ secrets.GITHUB_TOKEN }}
64+
```
65+
4466
> [!NOTE]
4567
> This library was generated using [copier](https://copier.readthedocs.io/en/stable/) from the [Base Python Project Template repository](https://github.com/python-project-templates/base).

0 commit comments

Comments
 (0)