Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
8c28525
Separate asciidoc publish to separate workflow
leandrumartin May 11, 2026
469dfb7
Potential fix for pull request finding 'CodeQL / Workflow does not co…
leandrumartin May 11, 2026
7da45db
Move where asciidoc publishing is called
leandrumartin May 11, 2026
5357157
Upload asciidoc build artifact
leandrumartin May 11, 2026
108569a
Update checkout version
leandrumartin May 11, 2026
840a152
Download and use AsciiDoc output artifact
leandrumartin May 11, 2026
ad2743d
Bump version
leandrumartin May 11, 2026
51758f6
Fix bad ref
leandrumartin May 11, 2026
7a877f3
Merge remote-tracking branch 'origin/433-docs-should-not-be-published…
leandrumartin May 11, 2026
fc5619a
Remove unsupported setting
leandrumartin May 11, 2026
89713cb
Update versions
leandrumartin May 11, 2026
a32ebd6
Keep files in asciidoc-publish.yml
leandrumartin May 11, 2026
fc484de
Fix reusable workflow secret contract and caller permissions
Copilot May 11, 2026
aa58982
Merge remote-tracking branch 'origin/433-docs-should-not-be-published…
leandrumartin May 11, 2026
dd6bb41
Revert "Fix reusable workflow secret contract and caller permissions"
Copilot May 11, 2026
f2296cb
Merge remote-tracking branch 'origin/433-docs-should-not-be-published…
leandrumartin May 11, 2026
e9e2915
Pass secrets and set permissions
leandrumartin May 11, 2026
7f707ec
Add secret and indent
leandrumartin May 11, 2026
35fe0d6
Remove the secret requirement that wasn't needed I guess
leandrumartin May 11, 2026
83f294d
Make title case consistent
leandrumartin May 11, 2026
ac67306
Remove unneeded line
leandrumartin May 11, 2026
b4a30a4
Remove unneeded ID
leandrumartin May 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 17 additions & 16 deletions .github/workflows/asciidoc-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,26 @@ name: build adocs
on:
push:
branches:
- main
- develop
- develop
pull_request:
branches:
- main
- develop
workflow_call:

jobs:
adoc_build:
runs-on: ubuntu-latest
name: ASCII DOC build
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get build container
id: adocbuild
uses: tonynv/asciidoctor-action@master
with:
program: "./gradlew asciidoctor"
- name: Deploy docs to ghpages
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_branch: gh-pages
publish_dir: ./pi4micronaut-utils/build/docs/asciidoc/

- name: Checkout code
uses: actions/checkout@v4
- name: Get build container
uses: tonynv/asciidoctor-action@v2
with:
program: "./gradlew asciidoctor"
- name: Upload AsciiDoc output
uses: actions/upload-artifact@v4
with:
name: asciidoc-output
path: pi4micronaut-utils/build/docs/asciidoc/
31 changes: 31 additions & 0 deletions .github/workflows/asciidoc-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish AsciiDoc
permissions:
contents: read
on:
workflow_call:
secrets:
ACTIONS_DEPLOY_KEY:
required: true

jobs:
build:
uses: ./.github/workflows/asciidoc-build.yml
Comment thread
leandrumartin marked this conversation as resolved.
adoc_publish:
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
needs: build
runs-on: ubuntu-latest
name: ASCII DOC publish
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download AsciiDoc output
uses: actions/download-artifact@v4
with:
name: asciidoc-output
path: pi4micronaut-utils/build/docs/asciidoc/
- name: Deploy docs to ghpages
uses: peaceiris/actions-gh-pages@v4
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_branch: gh-pages
publish_dir: ./pi4micronaut-utils/build/docs/asciidoc/
keep_files: true
4 changes: 1 addition & 3 deletions .github/workflows/javadoc-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ permissions:
pages: write
id-token: write
on:
workflow_call:
workflow_call:

jobs:
build:
Expand Down Expand Up @@ -40,10 +40,8 @@ jobs:
with:
name: javadoc
path: ./javadoc
retention-days: 1
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/develop'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./javadoc
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
name: Publish Documentation

permissions:
contents: write
on:
push:
branches:
- main
Comment thread
leandrumartin marked this conversation as resolved.
- develop

Comment thread
leandrumartin marked this conversation as resolved.
jobs:
publish-asciidoc:
uses: ./.github/workflows/asciidoc-build.yml
uses: ./.github/workflows/asciidoc-publish.yml
Comment thread
leandrumartin marked this conversation as resolved.
secrets:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}

publish-javadoc:
needs: publish-asciidoc
Expand Down
Loading