From 09106e2ce46c44e765991dcd0f778ff7a1156990 Mon Sep 17 00:00:00 2001 From: Danil Kosenko <86494425+bernizhel@users.noreply.github.com> Date: Mon, 17 Jul 2023 17:38:33 +0300 Subject: [PATCH 1/2] docs(content/actions): contexts.md environment variables logging (#26607) From c78d5d418ecae39c38d8fd19b42d6b54ca6b3cb1 Mon Sep 17 00:00:00 2001 From: David Young Date: Mon, 17 Jul 2023 16:49:37 +0100 Subject: [PATCH 2/2] Correct rendering of actions variables and upload-pages-artifact version (#26701) --- .../using-custom-workflows-with-github-pages.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/content/pages/getting-started-with-github-pages/using-custom-workflows-with-github-pages.md b/content/pages/getting-started-with-github-pages/using-custom-workflows-with-github-pages.md index 647bd3b62a..0c2b1a1128 100644 --- a/content/pages/getting-started-with-github-pages/using-custom-workflows-with-github-pages.md +++ b/content/pages/getting-started-with-github-pages/using-custom-workflows-with-github-pages.md @@ -50,6 +50,7 @@ The `deploy-pages` action handles the necessary setup for deploying artifacts. T For more information, see the [`deploy-pages`](https://github.com/marketplace/actions/deploy-github-pages-site) action. +{% raw %} ```yaml ... @@ -61,14 +62,16 @@ jobs: id-token: write runs-on: ubuntu-latest needs: jekyll-build - environment: github-pages - url: ${{steps.deployment.outputs.page_url}} + environment: + name: github-pages + url: ${{steps.deployment.outputs.page_url}} steps: - name: Deploy artifact id: deployment uses: actions/deploy-pages@v1 ... ``` +{% endraw %} ## Linking separate build and deploy jobs @@ -93,13 +96,13 @@ jobs: source: ./ destination: ./_site - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v2 # Deployment job deploy: environment: name: github-pages - url: ${{steps.deployment.outputs.page_url}} + url: {% raw %}${{steps.deployment.outputs.page_url}}{% endraw %} runs-on: ubuntu-latest needs: build steps: @@ -119,7 +122,7 @@ jobs: deploy: environment: name: github-pages - url: ${{steps.deployment.outputs.page_url}} + url: {% raw %}${{steps.deployment.outputs.page_url}}{% endraw %} runs-on: ubuntu-latest steps: - name: Checkout @@ -127,7 +130,7 @@ jobs: - name: Setup Pages uses: actions/configure-pages@v3 - name: Upload Artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@v2 with: # upload entire directory path: '.'