Skip to content

Commit

Permalink
Disable keychain storybook deploy (cartridge-gg#1234)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarrencev authored Jan 3, 2025
1 parent 347bea8 commit cbbf25b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 79 deletions.
78 changes: 0 additions & 78 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,84 +85,6 @@ jobs:
steps.vars.outputs.sha_short }}.preview.cartridge.gg --scope=cartridge
--token=${{ secrets.VERCEL_TOKEN }}

keychain-storybook:
runs-on: ubuntu-latest
env:
VERCEL_PROJECT_ID: "keychain-storybook"
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Cache pnpm modules
uses: actions/cache@v3
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Cache turbo build setup
uses: actions/cache@v4
with:
path: |
.turbo
packages/account-wasm/pkg-controller
packages/account-wasm/pkg-session
key:
${{ runner.os }}-turbo-cache-${{ github.ref_name }}-${{ github.sha
}}
restore-keys: |
${{ runner.os }}-turbo-cache-${{ github.ref_name }}-
${{ runner.os }}-turbo-cache-
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build:deps
- name: Pull Vercel Environment Information (Preview)
if: github.ref != 'refs/heads/main'
run:
pnpm vercel pull --yes --environment=preview --token=${{
secrets.VERCEL_TOKEN }}
- name: Pull Vercel Environment Information (Production)
if: github.ref == 'refs/heads/main'
run:
pnpm vercel pull --yes --environment=production --token=${{
secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts (Preview)
if: github.ref != 'refs/heads/main'
run: pnpm vercel build --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts (Production)
if: github.ref == 'refs/heads/main'
run: pnpm vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy to Vercel (Preview)
if: github.ref != 'refs/heads/main'
run:
echo "url=$(pnpm vercel deploy --prebuilt --token=${{
secrets.VERCEL_TOKEN }})" > "$GITHUB_OUTPUT"
id: deploy
- name: Deploy to Vercel (Production)
if: github.ref == 'refs/heads/main'
run:
pnpm vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN
}}
- name: Set outputs
id: vars
run: |
git config --global --add safe.directory '*'
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Assign Alias
if: github.ref != 'refs/heads/main'
run:
pnpm vercel alias set ${{ steps.deploy.outputs.url }}
keychain-storybook-${{ steps.vars.outputs.sha_short
}}.preview.cartridge.gg --scope=cartridge --token=${{
secrets.VERCEL_TOKEN }}

profile:
runs-on: ubuntu-latest
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
pull-requests: "write"
steps:
- uses: actions/checkout@v4

- run: git config --global --add safe.directory '*'
- uses: dorny/paths-filter@v3
id: changes
with:
Expand Down

0 comments on commit cbbf25b

Please sign in to comment.