Deploy UI to stable channel #1
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
# Deploys the static website for the UI storybook to final prod website, | |
# on every tag push into main branch. | |
name: Deploy UI to stable channel | |
on: | |
# Support ad-hoc runs | |
workflow_dispatch: | |
# Run automatically on tag push | |
push: | |
tags: | |
- '**[0-9]+.[0-9]+.[0-9]+*' | |
jobs: | |
build_and_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- name: Install dependencies | |
run: pnpm install | |
working-directory: packages/ui | |
- name: Build static site | |
run: pnpm build-storybook | |
working-directory: packages/ui | |
- uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: ${{ secrets.GITHUB_TOKEN }} | |
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_PENUMBRA_UI }} | |
channelId: live | |
target: stable | |
entryPoint: packages/ui | |
projectId: penumbra-ui |