-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 1.06 KB
/
Copy pathdeploy-changesets.yml
File metadata and controls
37 lines (32 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Deploy InProd Changesets
on:
push:
branches:
- Dev
- UAT
- Prod
paths:
- 'changesets/**'
env:
INPROD_BASE_URL: https://thi-nonacquiescent-nancie.ngrok-free.dev
# https://gray.dev.inprod.io
# https://local-dev.nevo.casa
INPROD_API_KEY: ba74e01e0feba3b8053489c53048d70b0d89899dbebae2c984d3f537897ae08f0be7283950cdcc7ce5425b82ebb8a53f
# 827a01988bbfb3bf76502ded2fc7c63dcc97f6ff7cc8a3a5b18b49e68114c8489bda4b633fbab269b070e72890babd31
# 236794163cac64e17cd2d1efc13cc38ef4846d8ffb33fc29f93ed0e119fad30b05e60269af6815302fe06fd05a45c60b
# ${{ secrets.INPROD_API_KEY }}
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set environment based on branch
id: set-env
run: |
echo "environment=${{ github.ref_name }}" >> $GITHUB_OUTPUT
- name: Deploy changesets
uses: inprod/github-run-changesets@main
with:
changeset_file: changesets/*
environment: ${{ steps.set-env.outputs.environment }}