Skip to content

Commit 0c53b71

Browse files
authored
ci: move docs to separate action (#942)
1 parent 26dbc64 commit 0c53b71

File tree

2 files changed

+33
-23
lines changed

2 files changed

+33
-23
lines changed

.github/workflows/publish-docs.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+

.github/workflows/release.yml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -187,29 +187,6 @@ jobs:
187187
docker manifest push ghcr.io/containrrr/watchtower:$(echo $TAG | sed 's/^v*//') && \
188188
docker manifest push ghcr.io/containrrr/watchtower:latest
189189
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-
213190
renew-docs:
214191
name: Refresh pkg.go.dev
215192
needs: build

0 commit comments

Comments
 (0)