diff --git a/.github/workflows/pull_request_secure.yml b/.github/workflows/pull_request_secure.yml index 9cd47931df..4d87ff5cd6 100644 --- a/.github/workflows/pull_request_secure.yml +++ b/.github/workflows/pull_request_secure.yml @@ -262,6 +262,9 @@ jobs: build_documentation: runs-on: ubuntu-latest + needs: approval_required + env: + BRANCH_NAME: ${{ github.head_ref || github.ref_name }} steps: - name: Checkout frontend id: checkout-frontend @@ -271,6 +274,11 @@ jobs: token: ${{ secrets.JRELEASER_GITHUB_TOKEN }} # Safe; only used to clone the repo and not stored in the fork. fetch-depth: 0 # Otherwise merge will fail on account of not having history. + - name: Checkout timefold-solver + uses: actions/checkout@v4 + with: + path: ./timefold-solver + - name: Set up NodeJs uses: actions/setup-node@v4 with: @@ -281,7 +289,9 @@ jobs: env: GIT_CREDENTIALS: ${{ secrets.GIT_CREDENTIALS }} run: | - sed -i 's/tags:\s*\[v[0-9.]*,\s*v0.8.42]/tags: \[main]/' apps/docs/antora-playbook.yml + cp ${{ github.workspace }}/timefold-solver/docs/src/antora-playbook-template.yml apps/docs/antora-playbook.yml + sed -i "s/REPLACEME/$BRANCH_NAME/" apps/docs/antora-playbook.yml + cat apps/docs/antora-playbook.yml npm ci npm run build -- --filter docs @@ -293,7 +303,8 @@ jobs: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} workingDirectory: ./apps/docs - command: pages deploy ./public-serve --project-name=timefold-docs --branch=${{ github.ref }} + # command: pages deploy ./public-serve --project-name=timefold-docs --branch=${{ github.ref }} + command: echo "deploy" sonarcloud: needs: approval_required