Skip to content

Add sunset message to Fleek storage section #316

Add sunset message to Fleek storage section

Add sunset message to Fleek storage section #316

name: ⚡️ Deploy Storybook (Staging)
on:
workflow_dispatch:
push:
branches:
- develop
jobs:
deploy-to-fleek:
runs-on: ubuntu-latest
environment: staging
env:
FLEEK_TOKEN: ${{ secrets.FLEEK_TOKEN }}
FLEEK_PROJECT_ID: ${{ secrets.FLEEK_PROJECT_ID }}
FLEEK_SLUG: ${{ secrets.FLEEK_SLUG }}
DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- uses: ./.github/actions/setup-nodejs
- name: Install Doppler CLI
uses: dopplerhq/cli-action@v3
- name: Setup Doppler
run: |
doppler configure set token ${{ secrets.DOPPLER_TOKEN }}
doppler configure set project ${{ secrets.DOPPLER_PROJECT }}
doppler configure set config ${{ secrets.DOPPLER_CONFIG }}
- name: Env vars health check
run: |
if ! doppler run -- printenv | grep -q 'NEXT_PUBLIC_SDK__AUTHENTICATION_URL'; then
echo "👹 Oops! Missing required environment variable during health check..."
exit 1
fi
echo "🚑 Doppler envVars seem healthy!"
- name: Setup dotenv
run: |
.scripts/setup-ci-dotenv
- name: Install Fleek CLI
run: pnpm i -g @fleek-platform/cli
- name: Install Packages
run: pnpm install
- name: Build & deploy
run: |
fleekConfigJson="fleek.config.json"
fleekConfigPath=".storybook/$fleekConfigJson"
if [[ ! -f "$fleekConfigPath" ]]; then
echo "👹 Oops! Failed to find $fleekConfigJson"
exit 1
fi
pnpm storybook:deploy
- name: Clear
run: |
rm .env