Skip to content

Commit 8728073

Browse files
committed
fixup! fixup! ci: build docs in gh workflow
1 parent 7acab43 commit 8728073

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
tags: ghcr.io/adfinis/pyaptly/cache:latest
8585
cache-from: type=registry,ref=ghcr.io/adfinis/pyaptly/cache:gha
8686

87-
- name: Run tests
87+
- name: Generate the docs
8888
run: |
8989
make docs
9090

.github/workflows/pull-requests.yml

+31
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,34 @@ jobs:
3131
- name: Run tests
3232
run: |
3333
HYPOTHESIS_PROFILE=ci make test
34+
35+
docs:
36+
runs-on: ubuntu-latest
37+
38+
steps:
39+
- name: Checkout code
40+
uses: actions/checkout@v4
41+
42+
- name: Set up Docker Buildx
43+
uses: docker/setup-buildx-action@v3
44+
with:
45+
buildkitd-flags: --debug
46+
47+
- name: Build container
48+
uses: docker/build-push-action@v5
49+
with:
50+
context: compose
51+
push: false
52+
load: true
53+
tags: ghcr.io/adfinis/pyaptly/cache:latest
54+
cache-from: type=registry,ref=ghcr.io/adfinis/pyaptly/cache:gha
55+
56+
- name: Generate the docs
57+
run: |
58+
make docs
59+
60+
- name: Upload artifacts
61+
uses: actions/upload-artifact@v3
62+
with:
63+
name: html-docs
64+
path: docs/_build/html/

0 commit comments

Comments
 (0)