File tree 2 files changed +11
-15
lines changed
2 files changed +11
-15
lines changed Original file line number Diff line number Diff line change 1
1
name : Publish docs
2
2
description : Publishes the documentation to GitHub Pages with mkdocs gh-deploy.
3
- inputs :
4
- github-token :
5
- description : " GitHub token for API access"
6
- required : true
7
3
8
4
runs :
9
5
using : " composite"
10
6
steps :
11
7
- shell : sh
12
- env :
13
- GH_TOKEN : ${{ inputs.github-token }}
14
8
run : |
15
9
pip install mkdocs
10
+ - shell : sh
11
+ run : |
16
12
mkdocs gh-deploy
Original file line number Diff line number Diff line change 11
11
vmatch :
12
12
runs-on : ubuntu-24.04
13
13
steps :
14
+ - name : Generate docs token
15
+ uses : actions/create-github-app-token@v1
16
+ id : generate-token
17
+ with :
18
+ app-id : ${{ secrets.AUTOMATION_APP_ID }}
19
+ private-key : ${{ secrets.AUTOMATION_APP_PRIVATE_KEY }}
20
+
14
21
- name : Checkout
15
22
uses : actions/checkout@v4
23
+ with :
24
+ token : ${{ steps.generate-token.outputs.token }}
16
25
17
26
- name : golangci-lint
18
27
uses : anttiharju/actions/lint-go@v0
23
32
name : go build
24
33
uses : ./.github/actions/build
25
34
26
- - name : Generate docs token
27
- uses : actions/create-github-app-token@v1
28
- id : generate-token
29
- with :
30
- app-id : ${{ secrets.AUTOMATION_APP_ID }}
31
- private-key : ${{ secrets.AUTOMATION_APP_PRIVATE_KEY }}
32
- repositories : vmatch
33
35
- name : Publish docs
34
36
uses : ./.github/actions/publish-docs
35
- with :
36
- github-token : ${{ steps.generate-token.outputs.token }}
You can’t perform that action at this time.
0 commit comments