File tree Expand file tree Collapse file tree 2 files changed +33
-23
lines changed Expand file tree Collapse file tree 2 files changed +33
-23
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish Docs
2
+
3
+ on :
4
+ workflow_dispatch : { }
5
+ workflow_run :
6
+ workflows : [ "Release (Production)" ]
7
+ branches : [ main ]
8
+ types :
9
+ - completed
10
+
11
+ jobs :
12
+ publish-docs :
13
+ name : Publish Docs
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - name : Checkout
17
+ uses : actions/checkout@v2
18
+ with :
19
+ fetch-depth : 0
20
+ - name : Install mkdocs
21
+ run : |
22
+ pip install \
23
+ mkdocs \
24
+ mkdocs-material \
25
+ md-toc
26
+ - name : Generate docs
27
+ run : mkdocs gh-deploy --strict
28
+ # - name: Publish docs
29
+ # uses: peaceiris/actions-gh-pages@v3
30
+ # with:
31
+ # github_token: ${{ secrets.GITHUB_TOKEN }}
32
+ # publish_dir: ./site
33
+
Original file line number Diff line number Diff line change @@ -187,29 +187,6 @@ jobs:
187
187
docker manifest push ghcr.io/containrrr/watchtower:$(echo $TAG | sed 's/^v*//') && \
188
188
docker manifest push ghcr.io/containrrr/watchtower:latest
189
189
190
- publish-docs :
191
- name : Publish Docs
192
- needs : build
193
- runs-on : ubuntu-latest
194
- steps :
195
- - name : Checkout
196
- uses : actions/checkout@v2
197
- with :
198
- fetch-depth : 0
199
- - name : Install mkdocs
200
- run : |
201
- pip install \
202
- mkdocs \
203
- mkdocs-material \
204
- md-toc
205
- - name : Generate docs
206
- run : mkdocs build
207
- - name : Publish docs
208
- uses : peaceiris/actions-gh-pages@v3
209
- with :
210
- github_token : ${{ secrets.GITHUB_TOKEN }}
211
- publish_dir : ./site
212
-
213
190
renew-docs :
214
191
name : Refresh pkg.go.dev
215
192
needs : build
You can’t perform that action at this time.
0 commit comments