@@ -181,49 +181,19 @@ jobs:
181181 name : Publish documentation
182182 needs : publish_deployment
183183 runs-on : ubuntu-latest
184+ permissions :
185+ actions : write
184186 steps :
185- - name : Check out repository
186- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
187- with :
188- fetch-depth : 1
189- ref : " refs/tags/${{ env.RELEASE_TAG }}"
190- - name : Install Graphviz and Poppler
191- run : |
192- sudo apt-get update
193- sudo apt-get install --yes graphviz poppler-utils
194- - name : Configure Git
195- run : |
196- git config --global user.name "JUnit Team"
197- git config --global user.email "[email protected] " 198- - name : Build documentation
199- uses : ./.github/actions/run-gradle
200- with :
201- encryptionKey : ${{ secrets.GRADLE_ENCRYPTION_KEY }}
202- arguments : |
203- --no-build-cache \
204- --no-configuration-cache \
205- clean \
206- gitPublishCopy \
207- -Pdocumentation.replaceCurrentDocs=${{ contains(inputs.releaseVersion, '-') && 'false' || 'true' }}
208- - name : Publish documentation
209- if : ${{ inputs.dryRun == false }}
210- uses : ./.github/actions/run-gradle
187+ - name : Trigger deployment
211188 env :
212- GIT_USERNAME : git
213- GIT_PASSWORD : ${{ secrets.JUNIT_BUILDS_GITHUB_TOKEN_DOCS_REPO }}
214- with :
215- encryptionKey : ${{ secrets.GRADLE_ENCRYPTION_KEY }}
216- arguments : |
217- --no-build-cache \
218- --no-configuration-cache \
219- gitPublishPush \
220- -Pdocumentation.replaceCurrentDocs=${{ contains(inputs.releaseVersion, '-') && 'false' || 'true' }}
221- - name : Wait for deployment to GitHub Pages
189+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
190+ run : gh workflow run deploy-docs.yml --repo junit-team/junit-framework --ref docs-site
191+ - name : Wait for deployment
222192 if : ${{ inputs.dryRun == false }}
223193 id : pagesDeployment
224- timeout-minutes : 20
194+ timeout-minutes : 30
225195 run : |
226- URL="https://docs.junit.org/${{ inputs.releaseVersion }}/user-guide /junit-user-guide-${{ inputs.releaseVersion }}.pdf"
196+ URL="https://docs.junit.org/${{ inputs.releaseVersion }}/_exports /junit-user-guide-${{ inputs.releaseVersion }}.pdf"
227197 ./.github/scripts/waitForUrl.sh "$URL"
228198 echo "pdfUrl=$URL" >> "$GITHUB_OUTPUT"
229199 - name : Verify integrity of PDF version of User Guide
0 commit comments