diff --git a/.github/workflows/pages-gh-cli-deploy.yml b/.github/workflows/pages-gh-cli-deploy.yml index aee75c7..d945955 100644 --- a/.github/workflows/pages-gh-cli-deploy.yml +++ b/.github/workflows/pages-gh-cli-deploy.yml @@ -53,13 +53,14 @@ jobs: --method POST \ --header "Accept: application/vnd.github+json" \ --header "X-GitHub-Api-Version: 2022-11-28" \ - "/repos/${GH_REPOSITORY}/pages/deployment" \ - -f artifact_url="${GH_ARTIFACT}" \ + "/repos/${GH_REPOSITORY}/pages/deployments" \ + -f artifact_url="${GH_ARTIFACT_URL}" \ -f environment='github-pages' \ -f pages_build_version="${GH_SHA}" \ - -f oidc_token="${GH_TOKEN}" + -f oidc_token="${GH_TOKEN}" \ + -F preview=false env: GH_REPOSITORY: ${{ github.repository }} GH_SHA: ${{ github.sha }} GH_TOKEN: ${{ github.token }} - GH_ARTIFACT: ${{ steps.artifact-url.outputs.url }} + GH_ARTIFACT_URL: ${{ steps.artifact-url.outputs.url }} diff --git a/.github/workflows/pages-gh-cli-setup.yml b/.github/workflows/pages-gh-cli-setup.yml index ef5cb71..928ec40 100644 --- a/.github/workflows/pages-gh-cli-setup.yml +++ b/.github/workflows/pages-gh-cli-setup.yml @@ -65,10 +65,6 @@ jobs: GH_TOKEN: ${{ github.token }} - name: Setup Page run: | - jq --null-input --raw-output \ - '{ "build_type": "workflow" }' \ - > request.json - method=POST if [[ ${PAGE_CONFIGURED} = true ]]; then method=PUT @@ -84,6 +80,9 @@ jobs: # Causes a Resource not accessible by integration (HTTP 403) error # Probably related to https://github.com/orgs/community/discussions/35595 +# jq --null-input --raw-output \ +# '{ "build_type": "workflow" }' \ +# > request.json # gh api \ # --method ${method} \ # --header "Accept: application/vnd.github+json" \ diff --git a/.github/workflows/pages-gh-cli.yml b/.github/workflows/pages-gh-cli.yml index ef75c1c..ca00100 100644 --- a/.github/workflows/pages-gh-cli.yml +++ b/.github/workflows/pages-gh-cli.yml @@ -122,11 +122,12 @@ jobs: --method POST \ --header "Accept: application/vnd.github+json" \ --header "X-GitHub-Api-Version: 2022-11-28" \ - "/repos/${GH_REPOSITORY}/pages/deployment" \ + "/repos/${GH_REPOSITORY}/pages/deployments" \ -f artifact_id="${GH_ARTIFACT_ID}" \ -f environment='github-pages' \ -f pages_build_version="${GH_SHA}" \ - -f oidc_token="${GH_TOKEN}" + -f oidc_token="${GH_TOKEN}" \ + -F preview=false env: GH_REPOSITORY: ${{ github.repository }} GH_SHA: ${{ github.sha }}