Skip to content

Commit

Permalink
ci: add examples deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelarbibe committed Jun 28, 2024
1 parent e87be74 commit 828abfb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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 }}

4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Deploy dnd-timeline examples
on:
push:
branches:
- main

jobs:
deploy_timeaxis:
environment: Production - dnd-timeline-timeaxis
uses: samuelarbibe/dnd-timeline/.github/workflows/deploy.yml@main
secrets:
projectId: ${{ secrets.VERCEL_PROJECT_ID_TIMEAXIS }}

0 comments on commit 828abfb

Please sign in to comment.