diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 6631832..bbeeeab 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -17,14 +17,10 @@ concurrency: cancel-in-progress: false jobs: - deploy: + # Built and uploaded in one job, deployed in the next: deploy-pages looks the artifact up by the run, and in the job that had just + # uploaded it, it sometimes did not see it yet ("No artifacts named github-pages", 2026-11-20 and 2026-11-24). + build: runs-on: ubuntu-latest - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - permissions: - pages: write # publish - id-token: write # prove where the deployment comes from steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: @@ -40,9 +36,19 @@ jobs: run: | go build -trimpath -o vmsctl ./cmd/vmsctl ./scripts/build-demo.sh - - uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0 - uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 with: path: site + deploy: + needs: build + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + permissions: + pages: write # publish + id-token: write # prove where the deployment comes from + steps: + - uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0 - id: deployment uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1