Update curation step styling #17
Workflow file for this run
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: CI | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
deploy-flow: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Determine environment to release to | |
run: | | |
if [ "${{ github.event.release.prerelease }}" = "true" ]; then | |
echo "Setting FLOW_ENVIRONMENT for prerelease" | |
echo "FLOW_ENVIRONMENT=dev" >> $GITHUB_ENV | |
echo "API_CLIENT_ID=${{ secrets.API_CLIENT_ID }}" >> $GITHUB_ENV | |
echo "API_CLIENT_SECRET=${{ secrets.API_CLIENT_SECRET }}" >> $GITHUB_ENV | |
echo "SMTP_HOSTNAME=${{ secrets.SMTP_HOSTNAME }}" >> $GITHUB_ENV | |
echo "SMTP_USER=${{ secrets.SMTP_USER }}" >> $GITHUB_ENV | |
echo "SMTP_PASS=${{ secrets.SMTP_PASS }}" >> $GITHUB_ENV | |
else | |
echo "Setting FLOW_ENVIRONMENT for prod release" | |
echo "FLOW_ENVIRONMENT=prod" >> $GITHUB_ENV | |
echo "API_CLIENT_ID=${{ secrets.PROD_API_CLIENT_ID }}" >> $GITHUB_ENV | |
echo "API_CLIENT_SECRET=${{ secrets.PROD_API_CLIENT_SECRET }}" >> $GITHUB_ENV | |
echo "SMTP_HOSTNAME=${{ secrets.SMTP_HOSTNAME }}" >> $GITHUB_ENV | |
echo "SMTP_USER=${{ secrets.SMTP_USER }}" >> $GITHUB_ENV | |
echo "SMTP_PASS=${{ secrets.SMTP_PASS }}" >> $GITHUB_ENV | |
fi | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip wheel | |
pip install globus-sdk==3.28.0 mdf_toolbox==0.6.0 | |
pip list | |
- name: Set env | |
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
- name: Deploy | |
run: | | |
cd automate | |
PYTHONPATH=../aws/ python deploy_mdf_flow.py ${{ env.FLOW_ENVIRONMENT }} ${{ env.RELEASE_VERSION }} |