Skip to content

Commit

Permalink
Add production deployment workflow (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
jianmtech committed Jun 20, 2024
1 parent b1a952f commit 0459e6d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy to Amplify
name: Deploy to Amplify Prod

on:
push:
Expand All @@ -17,5 +17,5 @@ jobs:
steps:
- name: deploy
run: |
URL="${{ secrets.AMPLIFY_WEBHOOK_NEW }}"
URL="${{ secrets.AMPLIFY_WEBHOOK_PROD }}"
curl -X POST -d {} "$URL" -H "Content-Type: application/json"
21 changes: 21 additions & 0 deletions .github/workflows/deploy-stage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deploy to Amplify Stage

on:
push:
branches: [new]
workflow_dispatch:
inputs:
ref:
type: string
required: true
description: Git ref
default: new

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: deploy
run: |
URL="${{ secrets.AMPLIFY_WEBHOOK_STAGE }}"
curl -X POST -d {} "$URL" -H "Content-Type: application/json"

0 comments on commit 0459e6d

Please sign in to comment.