Skip to content

Commit 7acab43

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

File tree

2 files changed

+39
-25
lines changed

2 files changed

+39
-25
lines changed

.github/workflows/docs.yml

-25
This file was deleted.

.github/workflows/main.yml

+39
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,45 @@ jobs:
6262
run: |
6363
HYPOTHESIS_PROFILE=ci make test
6464
65+
docs:
66+
runs-on: ubuntu-latest
67+
needs: [cache]
68+
69+
steps:
70+
- name: Checkout code
71+
uses: actions/checkout@v4
72+
73+
- name: Set up Docker Buildx
74+
uses: docker/setup-buildx-action@v3
75+
with:
76+
buildkitd-flags: --debug
77+
78+
- name: Build container
79+
uses: docker/build-push-action@v5
80+
with:
81+
context: compose
82+
push: false
83+
load: true
84+
tags: ghcr.io/adfinis/pyaptly/cache:latest
85+
cache-from: type=registry,ref=ghcr.io/adfinis/pyaptly/cache:gha
86+
87+
- name: Run tests
88+
run: |
89+
make docs
90+
91+
- name: Upload artifacts
92+
uses: actions/upload-artifact@v3
93+
with:
94+
name: html-docs
95+
path: docs/_build/html/
96+
97+
- name: Deploy
98+
uses: peaceiris/actions-gh-pages@v4
99+
if: github.ref == 'refs/heads/main'
100+
with:
101+
github_token: ${{ secrets.GITHUB_TOKEN }}
102+
publish_dir: docs/_build/html
103+
65104
package:
66105
runs-on: ubuntu-latest
67106
needs: [test]

0 commit comments

Comments
 (0)