mirror of
https://github.com/getlago/lago.git
synced 2024-12-22 21:53:24 +07:00
Add Deploy preview for submodules
This commit is contained in:
parent
efde4a9bbd
commit
4aaa93bd06
35
.github/workflows/deploy-preview.yml
vendored
Normal file
35
.github/workflows/deploy-preview.yml
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
name: Deploy Preview to Staging
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
front_branch:
|
||||
description: Front Branch
|
||||
required: true
|
||||
default: 'main'
|
||||
api_branch:
|
||||
description: API Branch
|
||||
required: true
|
||||
default: 'main'
|
||||
jobs:
|
||||
deploy-front:
|
||||
name: Deploy Front
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Front Repository Dispatch
|
||||
uses: peter-evans/repository-dispatch@v1
|
||||
with:
|
||||
token: ${{ secrets.REPO_ACCESS_TOKEN }}
|
||||
repository: getlago/lago-front
|
||||
event-type: deploy-preview
|
||||
client-payload: '{ "branch": "${{ github.event.inputs.front_branch }}" }'
|
||||
deploy-api:
|
||||
name: Deploy API
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: API Repository Dispatch
|
||||
uses: peter-evans/repository-dispatch@v1
|
||||
with:
|
||||
token: ${{ secrets.REPO_ACCESS_TOKEN }}
|
||||
repository: getlago/lago-api
|
||||
event-type: deploy-preview
|
||||
client-payload: '{ "branch": "${{ github.event.inputs.api_branch }}" }'
|
2
api
2
api
@ -1 +1 @@
|
||||
Subproject commit 721ab9063e0e4f399dbcf50db77ad9c2fa87ac5c
|
||||
Subproject commit d2d6dcb358cd020183dc01545e9e07e4c6c22834
|
Loading…
Reference in New Issue
Block a user