Skip to content

Commit

Permalink
fixup! fixup! ci: build docs in gh workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Melkor333 committed Dec 18, 2024
1 parent 7acab43 commit 8728073
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
tags: ghcr.io/adfinis/pyaptly/cache:latest
cache-from: type=registry,ref=ghcr.io/adfinis/pyaptly/cache:gha

- name: Run tests
- name: Generate the docs
run: |
make docs
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,34 @@ jobs:
- name: Run tests
run: |
HYPOTHESIS_PROFILE=ci make test
docs:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
buildkitd-flags: --debug

- name: Build container
uses: docker/build-push-action@v5
with:
context: compose
push: false
load: true
tags: ghcr.io/adfinis/pyaptly/cache:latest
cache-from: type=registry,ref=ghcr.io/adfinis/pyaptly/cache:gha

- name: Generate the docs
run: |
make docs
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: html-docs
path: docs/_build/html/

0 comments on commit 8728073

Please sign in to comment.