|
7 | 7 | - main |
8 | 8 |
|
9 | 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 | 10 | publish-gh-pages: |
31 | | - needs: [build-devcontainer] |
32 | 11 | runs-on: ubuntu-latest |
33 | 12 | steps: |
34 | 13 | - name: Checkout (GitHub) |
35 | 14 | uses: actions/checkout@v4 |
36 | 15 |
|
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 |
43 | 18 |
|
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 |
52 | 22 |
|
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 |
0 commit comments