From 7e85527af43bf83a3f356011603b4f0fbb373091 Mon Sep 17 00:00:00 2001 From: lukaw3d Date: Fri, 20 Sep 2024 03:22:02 +0200 Subject: [PATCH] Cloudflare stable preview URLs --- .changelog/2057.process.md | 1 + .github/workflows/cloudflare-pages.yml | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 .changelog/2057.process.md diff --git a/.changelog/2057.process.md b/.changelog/2057.process.md new file mode 100644 index 0000000000..c147735d62 --- /dev/null +++ b/.changelog/2057.process.md @@ -0,0 +1 @@ +Cloudflare stable preview URLs diff --git a/.github/workflows/cloudflare-pages.yml b/.github/workflows/cloudflare-pages.yml index 1d773655d5..beb29bb85f 100644 --- a/.github/workflows/cloudflare-pages.yml +++ b/.github/workflows/cloudflare-pages.yml @@ -65,6 +65,8 @@ jobs: projectName: oasis-wallet # Use output directory of build command. directory: build + branch: ${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) || '' }} + wranglerVersion: '3' # On a subsequent run the original comment will be updated. - name: Update PR comment uses: mshick/add-pr-comment@v2 @@ -85,6 +87,10 @@ jobs: Preview URL: ${{ steps.cloudflare.outputs.url }} + + Alias: + ${{ steps.cloudflare.outputs.alias }} + message-failure: | ## Deployed to Cloudflare Pages