File tree Expand file tree Collapse file tree 2 files changed +74
-0
lines changed
Expand file tree Collapse file tree 2 files changed +74
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : Publish GitHub Pages
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches :
7+ - main
8+
9+ jobs :
10+ build-devcontainer :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout (GitHub)
14+ uses : actions/checkout@v4
15+
16+ - name : Login to GitHub Container Registry
17+ uses : docker/login-action@v3
18+ with :
19+ registry : ghcr.io
20+ username : ${{ github.repository_owner }}
21+ password : ${{ secrets.GITHUB_TOKEN }}
22+
23+ - name : Build and push devcontainer image
24+ uses : devcontainers/ci@v0.3
25+ with :
26+ imageName : ghcr.io/lf-certification/cert-tech-docs-devcontainer
27+ cacheFrom : ghcr.io/lf-certification/cert-tech-docs-devcontainer
28+ push : always
29+
30+ publish-gh-pages :
31+ needs : [build-devcontainer]
32+ runs-on : ubuntu-latest
33+ steps :
34+ - name : Checkout (GitHub)
35+ uses : actions/checkout@v4
36+
37+ - name : Login to GitHub Container Registry
38+ uses : docker/login-action@v3
39+ with :
40+ registry : ghcr.io
41+ username : ${{ github.repository_owner }}
42+ password : ${{ secrets.GITHUB_TOKEN }}
43+
44+ - name : Run devcontainer task
45+ uses : devcontainers/ci@v0.3
46+ with :
47+ imageName : ghcr.io/lf-certification/cert-tech-docs-devcontainer
48+ cacheFrom : ghcr.io/lf-certification/cert-tech-docs-devcontainer
49+ push : never
50+ runCmd : |
51+ set -e
52+
53+ poetry run mkdocs gh-deploy --force --no-history \
54+ --remote-branch gh-pages
Original file line number Diff line number Diff line change 1+ name : Publish T&C Tech Docs
2+ on :
3+ workflow_dispatch :
4+ push :
5+ paths :
6+ - " docs/**"
7+ branches :
8+ - main
9+
10+ jobs :
11+ publish-docs :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Invoke workflow LF-Engineering/tc-tech-docs
15+ uses : benc-uk/workflow-dispatch@v1
16+ with :
17+ repo : LF-Engineering/tc-tech-docs
18+ workflow : publish-docs.yml
19+ ref : main
20+ token : " ${{ secrets.GH_TOKEN_TC_TECH_DOCS }}"
You can’t perform that action at this time.
0 commit comments