|
|
|
|
@ -3,13 +3,23 @@ name: Main Deploy Workflow
|
|
|
|
|
on:
|
|
|
|
|
push:
|
|
|
|
|
branches:
|
|
|
|
|
- main
|
|
|
|
|
- development
|
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
|
|
env:
|
|
|
|
|
WEB_APP_ENV: ${{ vars.WEB_APP_ENV }}
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
switch-branch:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout main branch
|
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
|
|
- name: Checkout different branch
|
|
|
|
|
run: git checkout development
|
|
|
|
|
|
|
|
|
|
build_web:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
environment: staging
|
|
|
|
|
|