Skip to content

Commit

Permalink
Merge pull request #120 from ambujraj/119-add-ui-deployment-and-backe…
Browse files Browse the repository at this point in the history
…nd-deployment-on-release

added github action to be called on release
  • Loading branch information
ambujraj authored Apr 4, 2024
2 parents cef64c1 + d149bb5 commit 979660a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/deploy-backend.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
name: Deploy SAM Backend

on:
push:
branches:
- master
paths:
- 'middleware/**'
- '.github/workflows/deploy-backend.yaml'
release:
types: [created]

jobs:
deploy:
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/deploy-frontend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Deploy Vercel Frontend
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
- uses: actions/checkout@v2

- name: Install Vercel CLI
run: npm install --global vercel@latest

- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}

- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}

- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}

0 comments on commit 979660a

Please sign in to comment.