Skip to content

Commit

Permalink
ci: manual deployment aligned
Browse files Browse the repository at this point in the history
  • Loading branch information
andresin87 committed Nov 14, 2023
1 parent ad74404 commit 71a51ab
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/manual-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,33 @@
name: manual-deploy
on:
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install
uses: ./.github/composite-actions/install

- name: Install Vercel CLI
run: npm install --global vercel@latest --no-save --no-fund --no-audit --no-scripts
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: npm run build

- name: Build Storybook
run: npm run storybook:build

- name: Build tailwind config viewer
run: npm run tailwind-config-viewer:build

- name: Deploy Storybook to Vercel
run: vercel deploy --token $VERCEL_TOKEN --prod --yes
id: deployment
run: |
DEPLOYMENT_URL=$(vercel deploy --token $VERCEL_TOKEN --yes)
echo "::set-output name=url::$(echo $DEPLOYMENT_URL)"
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
Expand Down

0 comments on commit 71a51ab

Please sign in to comment.