From c0e9eb5b2a9832e9550aec667de16c22a8a801a4 Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Sun, 12 Nov 2023 15:47:44 +0100 Subject: [PATCH] chore: push the release of the storybook build to the right branch (#3) --- .github/workflows/publish.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d838f01..8af303c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,6 +4,9 @@ on: release: types: - published + push: + branches: + - main pull_request_target: branches: - main @@ -39,4 +42,4 @@ jobs: accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} projectName: ${{ vars.CLOUDFLARE_PROJECT_NAME }} directory: storybook-static - branch: ${{ github.event_name == 'release' && github.ref_name || format('pr/{0}', github.event.pull_request.number) }} + branch: ${{ github.event_name == 'release' && 'main' || github.event_name == 'push' && 'latest' || format('pr/{0}', github.event.pull_request.number) }}