Skip to content

Commit 9aba293

Browse files
committed
feat(actions): Add actions to publish docs
Signed-off-by: Jean-Luc Davern <jdavern@linuxfoundation.org>
1 parent 1da988b commit 9aba293

File tree

2 files changed

+8
-57
lines changed

2 files changed

+8
-57
lines changed

.github/workflows/gh-pages.yaml

Lines changed: 8 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -7,48 +7,19 @@ on:
77
- main
88

99
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-
3010
publish-gh-pages:
31-
needs: [build-devcontainer]
3211
runs-on: ubuntu-latest
3312
steps:
3413
- name: Checkout (GitHub)
3514
uses: actions/checkout@v4
3615

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 }}
16+
- name: Install devbox
17+
uses: jetpack-io/devbox-install-action@v0.8.0
4318

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
19+
- name: Setup Python environment
20+
run: |
21+
devbox run -- poetry install
5222
53-
poetry run mkdocs gh-deploy --force --no-history \
54-
--remote-branch gh-pages
23+
- name: Build and deploy docs
24+
run: |
25+
devbox run -- poetry run mkdocs gh-deploy --force --no-history --remote-branch gh-pages

.github/workflows/publish-docs.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)