chore: push the release of the storybook build to the right branch (#3)

This commit is contained in:
Patric Stout
2023-11-12 15:47:44 +01:00
committed by GitHub
parent 7977ceaf9f
commit c0e9eb5b2a

View File

@@ -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) }}