Reapplying Github workflow tests for merge_repos.sh stage. #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Prod build and deployment | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
BuildSimulation: | |
# TODO abort this workflow if the git user triggered it is not the release manager | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: | | |
release_manager="Thebinoman" | |
push_user="${{ github.actor }}" | |
echo building and packing and app... | |
if [[ "$push_user" != "$release_manager" ]]; then | |
echo "Workflow aborted. User $push_user is not authorized for release." | |
exit 1 | |
else | |
echo "$push_user is authorized for release." | |
fi | |
DeploySimulation: | |
runs-on: ubuntu-latest | |
needs: BuildSimulation | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Deploy | |
run: | | |
echo deploying into Test env |