From 071dea47152c3e40fb604dbe664a71c303a9c583 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Fr=C3=A9mont?= Date: Wed, 25 Nov 2026 10:50:16 +0100 Subject: [PATCH] [Demo] Deploy the demo in a job of its own The build exports the runtime token of GitHub Actions to its steps, for the cache of buildx: deploy-pages, in the same job, then finds no artifact on Sylius/Stack. A job of its own, as in GitHub's starter workflow. --- .github/workflows/demo.yaml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/demo.yaml b/.github/workflows/demo.yaml index af1c9a81..1b2d962e 100644 --- a/.github/workflows/demo.yaml +++ b/.github/workflows/demo.yaml @@ -20,12 +20,9 @@ concurrency: cancel-in-progress: true jobs: - deploy: + build: runs-on: ubuntu-latest - name: "Build and deploy the demo" - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} + name: "Build the demo" env: COMPOSER_ROOT_VERSION: "dev-main" defaults: @@ -85,6 +82,17 @@ jobs: with: path: wasm-demo/public + # A job of its own, as GitHub's starter workflow: the build exports the + # runtime token of Actions to its steps, for the cache of buildx, and + # deploy-pages then finds no artifact + deploy: + needs: build + runs-on: ubuntu-latest + name: "Deploy the demo" + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: - name: "Deploy to GitHub Pages" id: deployment uses: actions/deploy-pages@v4