From c346a430209d4644e08d773cff88214bb8f64e9b Mon Sep 17 00:00:00 2001 From: Midia Kiasat Date: Wed, 20 May 2026 20:03:59 +0200 Subject: [PATCH] Fix APPLY Pages workflow deploy syntax --- .github/workflows/pages.yml | 105 ++++++++++++++++++++---------------- 1 file changed, 58 insertions(+), 47 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index e757c09..e15a81f 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -1,51 +1,62 @@ name: Publish apply surface + on: -push: -branches: [ main ] -workflow_dispatch: + push: + branches: [ main ] + workflow_dispatch: + permissions: -contents: read -pages: write -id-token: write + contents: read + pages: write + id-token: write + +concurrency: + group: pages + cancel-in-progress: true + jobs: -contract: -runs-on: ubuntu-latest -steps: -- uses: actions/checkout@v4 -- uses: actions/setup-node@v4 -with: -node-version: "22" -- run: npm test -- run: npm run verify -deploy-static-fallback: -needs: contract -runs-on: ubuntu-latest -environment: -name: github-pages -url: ${{ steps.deployment.outputs.page_url }} -steps: -- uses: actions/checkout@v4 -- uses: actions/configure-pages@v5 -- name: Prepare static artifact -shell: bash -run: | -set -euo pipefail -rm -rf dist -mkdir -p dist -cp -R public/. dist/ -cp CNAME dist/CNAME -grep -Fx "apply.verifrax.net" dist/CNAME -test -f dist/index.html -test -f dist/task/index.html -test -f dist/submit/index.html -test -f dist/confirm/index.html -test -f dist/status/index.html -test -f dist/privacy/index.html -test -f dist/admin/index.html -test -f dist/tasks/protocol-review.json -test -f dist/schemas/submission.schema.json -- uses: actions/upload-pages-artifact@v3 -with: -path: dist -- id: deployment -uses: actions/deploy-pages@v4 + contract: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "22" + - run: npm test + - run: npm run verify + + deploy-static-fallback: + needs: contract + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - uses: actions/checkout@v4 + - uses: actions/configure-pages@v5 + + - name: Prepare static artifact + shell: bash + run: | + set -euo pipefail + rm -rf dist + mkdir -p dist + cp -R public/. dist/ + cp CNAME dist/CNAME + grep -Fx "apply.verifrax.net" dist/CNAME + test -f dist/index.html + test -f dist/task/index.html + test -f dist/submit/index.html + test -f dist/confirm/index.html + test -f dist/status/index.html + test -f dist/privacy/index.html + test -f dist/admin/index.html + test -f dist/tasks/protocol-review.json + test -f dist/schemas/submission.schema.json + + - uses: actions/upload-pages-artifact@v3 + with: + path: dist + + - id: deployment + uses: actions/deploy-pages@v4