Skip to content

Commit

Permalink
docs: run tests after build
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Kurfer committed Jun 19, 2024
1 parent 28d6a5a commit f8710a5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 12 deletions.
26 changes: 25 additions & 1 deletion .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build documentation
name: Build & upload documentation

on:
push:
Expand All @@ -21,3 +21,27 @@ jobs:
instance: ${{ env.INSTANCE }}
artifact: ${{ env.ARTIFACT }}
location: ./docs

- name: Save artifact with build results
uses: actions/upload-artifact@v4
with:
name: docs
path: |
artifacts/${{ env.ARTIFACT }}
artifacts/report.json
retention-days: 7

test-docs:
needs: build-docs
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: docs
path: artifacts

- name: Test documentation
uses: JetBrains/writerside-checker-action@v1
with:
instance: ${{ env.INSTANCE }}
11 changes: 0 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,3 @@ jobs:
--upload-file "${deb}" \
https://code.icb4dc0.de/api/packages/prskr/debian/pool/bookworm/main/upload
done
- name: Setup Pages
uses: actions/configure-pages@v5

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "out/html/"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit f8710a5

Please sign in to comment.