From 828abfb8b1e33052a24f645dd971b1d29c054995 Mon Sep 17 00:00:00 2001 From: samuelarbibe Date: Fri, 28 Jun 2024 19:28:13 +0300 Subject: [PATCH] ci: add examples deployment workflow --- .github/workflows/deploy.yml | 10 ++-------- .github/workflows/main.yml | 4 ++-- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8cfd6b8..345d1da 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,13 +1,7 @@ -name: Deploy dnd-timeline examples +name: Deploy dnd-timeline examples template env: VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} - -on: - workflow_call: - secrets: - projectId: - required: true jobs: deploy_production: @@ -17,5 +11,5 @@ jobs: - name: Install Vercel CLI run: npm install --global vercel@latest - name: Deploy to Vercel - run: vercel --prod --projectId=${{ secrets.projectId }} + run: vercel --prod --projectId=${{ secrets.VERCEL_PROJECT_ID }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ee3cc3b..4184985 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,3 +1,4 @@ +name: Deploy dnd-timeline examples on: push: branches: @@ -5,6 +6,5 @@ on: jobs: deploy_timeaxis: + environment: Production - dnd-timeline-timeaxis uses: samuelarbibe/dnd-timeline/.github/workflows/deploy.yml@main - secrets: - projectId: ${{ secrets.VERCEL_PROJECT_ID_TIMEAXIS }}