Skip to content

Commit

Permalink
Add GHA to deploy flow
Browse files Browse the repository at this point in the history
  • Loading branch information
BenGalewsky committed Nov 6, 2023
1 parent 3f9e523 commit 646aae2
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/deploy_flow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
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: [released, prereleased]

jobs:
deploy-flow:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
ref: deploy_flow

- 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
env:
API_CLIENT_ID: '${{ secrets.API_CLIENT_ID }}'
API_CLIENT_SECRET: '${{ secrets.API_CLIENT_SECRET }}'
SMTP_HOSTNAME: '${{ secrets.SMTP_HOSTNAME }}'
SMTP_USER: '${{ secrets.SMTP_USER }}'
SMTP_PASS: '${{ secrets.SMTP_PASS }}'
run: |
cd automate
PYTHONPATH=../aws/ python deploy_mdf_flow.py ${{ env.RELEASE_VERSION }}

0 comments on commit 646aae2

Please sign in to comment.