From e6a77c19c9388a8c7b43d171f7f0b767af208f71 Mon Sep 17 00:00:00 2001 From: Toby Jaffey Date: Sun, 14 Dec 2025 02:40:29 +0000 Subject: [PATCH] "More magic" --- .github/workflows/build.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index edb4333..69bade6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,15 +8,24 @@ permissions: pages: write id-token: write +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + jobs: test: strategy: matrix: os: [ubuntu-latest] + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} runs-on: ${{matrix.os}} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: path: uvm32 - name: Build @@ -26,14 +35,13 @@ jobs: run: make dockerci working-directory: uvm32 - name: Setup Pages - if: github.ref == 'refs/heads/main' uses: actions/configure-pages@v5 - name: Upload Artifact - if: github.ref == 'refs/heads/main' uses: actions/upload-pages-artifact@v3 with: path: uvm32/test/badge.svg artifact_name: badge.svg - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v3 + uses: actions/deploy-pages@v4 +