Skip to content

Commit

Permalink
Revert changes to deploy (#518)
Browse files Browse the repository at this point in the history
  • Loading branch information
albrja authored Oct 24, 2024
1 parent 813a859 commit 4af9997
Showing 1 changed file with 43 additions and 4 deletions.
47 changes: 43 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,46 @@ on:
types: [published]

jobs:
build:
uses:
ihmeuw/vivarium_build_utils/.github/workflows/deploy.yml@main

deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
run: |
python --version
python -m pip install --upgrade pip
pip install setuptools wheel build
- name: Test
run: |
pip install .[test]
pytest --runslow ./tests
- name: Build
run: python -m build
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
- name: Send mail
# Notify when cron job fails
if: failure()
uses: dawidd6/action-send-mail@v2
with:
# mail server settings
server_address: smtp.gmail.com
server_port: 465
# user credentials
username: ${{ secrets.NOTIFY_EMAIL }}
password: ${{ secrets.NOTIFY_PASSWORD }}
# email subject
subject: ${{ github.job }} job of ${{ github.repository }} has ${{ job.status }}
# email body as text
body: ${{ github.job }} job in worflow ${{ github.workflow }} of ${{ github.repository }} has ${{ job.status }}
# comma-separated string, send email to
to: [email protected]
# from email name
from: Vivarium Notifications

0 comments on commit 4af9997

Please sign in to comment.