Skip to content

Commit

Permalink
fix dry-run site publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
aSemy committed Jan 25, 2024
1 parent 4dbf815 commit aa25db9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/run_publish_site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,20 @@ on:
description: "The branch, tag or SHA to checkout. See actions/checkout 'ref'."
required: false
type: string
enable-deploy:
description: "Publish to GitHub Pages."
required: false
type: boolean
workflow_call:
inputs:
checkout-ref:
description: "The branch, tag or SHA to checkout. See actions/checkout 'ref'."
required: false
type: string
enable-deploy:
description: "Publish to GitHub Pages."
required: false
type: boolean


concurrency:
Expand Down Expand Up @@ -51,6 +59,7 @@ jobs:
path: ./docs/build/dokka/html

deploy:
if: inputs.enable-deploy
needs: build
runs-on: ubuntu-latest
permissions:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ jobs:

build-site:
# verify that the site can be built, but don't deploy it
uses: ./.github/workflows/run_gradle_task.yml
uses: ./.github/workflows/run_publish_site.yml
with:
runs-on: ubuntu-latest
gradle-task: docusaurusBuild
checkout-ref: ${{ inputs.checkout-ref }}
enable-deploy: false
1 change: 1 addition & 0 deletions .github/workflows/workflow_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ jobs:
pages: write # to deploy to Pages
with:
checkout-ref: ${{ inputs.checkout-ref }}
enable-deploy: true

0 comments on commit aa25db9

Please sign in to comment.