Merge branch 'draft' into docs #131
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: dDevKit Components | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- 'draft' | |
- 'main' | |
push: | |
branches: | |
- 'docs' | |
- 'draft' | |
- 'main' | |
paths: | |
- 'apps/storybook/**' | |
- 'pnpm-*.yaml' | |
env: | |
TEST_EAS_PRIVATE_KEY: ${{ secrets.TEST_EAS_PRIVATE_KEY }} | |
TEST_USER_PRIVATE_KEY: ${{ secrets.TEST_USER_PRIVATE_KEY }} | |
LIGHTHOUSE_API_KEY: ${{ secrets.LIGHTHOUSE_API_KEY }} | |
jobs: | |
build-storybook: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js and pnpm | |
uses: ./.github/actions/setup-node-pnpm | |
- name: Build app | |
run: pnpm --filter storybook build | |
- name: Upload storybook build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: storybook-build | |
path: apps/storybook/storybook-static | |
# smoke test, disabled for now | |
# - name: Build gql | |
# run: pnpm --filter graphql build:gql | |
deploy-storybook: | |
needs: [build-storybook] | |
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/draft' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js and pnpm | |
uses: ./.github/actions/setup-node-pnpm | |
- name: Download storybook build | |
uses: actions/download-artifact@v4 | |
with: | |
name: storybook-build | |
path: apps/storybook/storybook-static | |
- name: Deploy app | |
env: | |
FLEEK_TOKEN: ${{ secrets.FLEEK_TOKEN }} | |
FLEEK_PROJECT_ID: cm2kkeg090000d5n0pbuh5f9u | |
run: pnpm --dir apps/storybook deploy:fleek | |
deploy-docs: | |
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/docs' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js and pnpm | |
uses: ./.github/actions/setup-node-pnpm | |
- name: Build docs | |
run: pnpm --filter docs build | |
- name: Deploy docs | |
env: | |
FLEEK_TOKEN: ${{ secrets.FLEEK_TOKEN }} | |
FLEEK_PROJECT_ID: cm1coipco000087g1pcgohgtd | |
run: pnpm --dir apps/docs deploy:fleek | |
deploy-registry: | |
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/draft' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js and pnpm | |
uses: ./.github/actions/setup-node-pnpm | |
- name: Build registry | |
run: pnpm --filter @geist/registry build | |
- name: Deploy registry | |
env: | |
FLEEK_TOKEN: ${{ secrets.FLEEK_TOKEN }} | |
FLEEK_PROJECT_ID: cm2lvm8yh000030bm17kmomq9 | |
run: pnpm --dir apps/registry deploy:fleek |