Product Manager Changes #1
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: Test build and deployment | |
on: | |
push: | |
branches: | |
- 'release-*' | |
jobs: | |
BuildSimulation: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Check version | |
run : | | |
sudo apt-get update && sudo apt-get install jq | |
release_version=${GITHUB_REF#*release-} | |
if [ "$(cat version.json | jq -r '.version')" != "$release_version" ] | |
then | |
echo -e "\n\nrelease version mismatches the version written in version.json. Please change version.json and commit your change.\n\n" | |
exit 1 | |
fi | |
- name: Build | |
run: | | |
echo building and packing and app... | |
DeploySimulation: | |
runs-on: ubuntu-latest | |
needs: BuildSimulation | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Deploy | |
run: | | |
echo deploying into Test env |