From 71a51aba2110b254274e1c6ff860c440c1580e85 Mon Sep 17 00:00:00 2001 From: andresin87 Date: Tue, 14 Nov 2023 16:02:23 +0100 Subject: [PATCH] ci: manual deployment aligned --- .github/workflows/manual-deploy.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/manual-deploy.yml b/.github/workflows/manual-deploy.yml index 7370559a2..9f1c697af 100644 --- a/.github/workflows/manual-deploy.yml +++ b/.github/workflows/manual-deploy.yml @@ -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 }}