feat: Add storybook (#15) #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to Staging | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [main] | ||
concurrency: | ||
group: staging | ||
cancel-in-progress: true | ||
env: | ||
# "branch:$name" or "tag:$name", except for the automatic deploys from pushing to main it's just "main". | ||
version_name: "${{ (github.event_name == 'push' && github.ref_name == 'main' && 'main') || format('{0}:{1}', github.ref_type, github.ref_name) }} | ||
jobs: | ||
deploy: | ||
name: Deploy to Staging | ||
uses: ./.github/workflows/deploy.yml | ||
with: | ||
env: staging | ||
version-name: ${{ env.version_name }} | ||
secrets: inherit |