7878 uses : pypa/gh-action-pypi-publish@release/v1
7979 with :
8080 packages-dir : libs/core/dist/
81- - name : Send mail on failure
82- if : failure()
83- uses : dawidd6/action-send-mail@v3
84- with :
85- server_address : smtp.gmail.com
86- server_port : 465
87- username : ${{ secrets.NOTIFY_EMAIL }}
88- password : ${{ secrets.NOTIFY_PASSWORD }}
89- subject : Core deployment of ${{ github.repository }} has failed
90- body : Core package deployment in workflow ${{ github.workflow }} of ${{ github.repository }} has failed
91- to : uw_ihme_simulationscience@uw.edu
92- from : SimSci Notifications
9381
9482 deploy-public-health :
9583 if : ${{ (github.event_name == 'release' && contains(github.event.release.tag_name, 'public-health-v')) || github.event.inputs.package == 'public_health' }}
@@ -153,41 +141,4 @@ jobs:
153141 - name : Publish public health to PyPI
154142 uses : pypa/gh-action-pypi-publish@release/v1
155143 with :
156- packages-dir : libs/public_health/dist/
157- - name : Send mail on failure
158- if : failure()
159- uses : dawidd6/action-send-mail@v3
160- with :
161- server_address : smtp.gmail.com
162- server_port : 465
163- username : ${{ secrets.NOTIFY_EMAIL }}
164- password : ${{ secrets.NOTIFY_PASSWORD }}
165- subject : Public Health deployment of ${{ github.repository }} has failed
166- body : Public Health package deployment in workflow ${{ github.workflow }} of ${{ github.repository }} has failed
167- to : uw_ihme_simulationscience@uw.edu
168- from : SimSci Notifications
169-
170- notify-success :
171- if : ${{ always() && (needs.deploy-core.result == 'success' || needs.deploy-public-health.result == 'success') }}
172- needs : [deploy-core, deploy-public-health]
173- runs-on : ubuntu-latest
174- steps :
175- - name : Send success notification
176- uses : dawidd6/action-send-mail@v3
177- with :
178- server_address : smtp.gmail.com
179- server_port : 465
180- username : ${{ secrets.NOTIFY_EMAIL }}
181- password : ${{ secrets.NOTIFY_PASSWORD }}
182- subject : Successful deployment of ${{ github.repository }}
183- body : |
184- Deployment workflow ${{ github.workflow }} of ${{ github.repository }} completed successfully!
185-
186- Core deployment: ${{ needs.deploy-core.result }}
187- Public Health deployment: ${{ needs.deploy-public-health.result }}
188-
189- Packages are now available on PyPI:
190- - sim-sci-test-monorepo-core
191- - sim-sci-test-monorepo-public-health
192- to : uw_ihme_simulationscience@uw.edu
193- from : SimSci Notifications
144+ packages-dir : libs/public_health/dist/
0 commit comments