Skip to content

Commit 62a9cad

Browse files
authored
Update PyPI publish with 2FA (#107)
* remove user/pass * Update CHANGELOG.rst * Update CHANGELOG.rst
1 parent ec19501 commit 62a9cad

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
jobs:
88
deploy:
99
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write
1012
steps:
1113
- uses: actions/checkout@v3
1214
- name: Set up Python
@@ -17,18 +19,15 @@ jobs:
1719
run: |
1820
python --version
1921
python -m pip install --upgrade pip
20-
pip install setuptools wheel twine
22+
pip install setuptools wheel build
2123
- name: Test
2224
run: |
2325
pip install .[test]
2426
pytest --runslow ./tests
25-
- name: Build and publish
26-
env:
27-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
28-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
29-
run: |
30-
python setup.py sdist bdist_wheel
31-
twine upload dist/*
27+
- name: Build
28+
run: python -m build
29+
- name: Publish
30+
uses: pypa/gh-action-pypi-publish@release/v1
3231
- name: Send mail
3332
# Notify when cron job fails
3433
if: failure()
@@ -48,4 +47,4 @@ jobs:
4847
to: uw_ihme_simulationscience@uw.edu
4948
# from email name
5049
from: Vivarium Notifications
51-
50+

CHANGELOG.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
**3.1.2 - 01/09/24**
2+
3+
- Update PyPI to 2FA with trusted publisher (GitHub Actions)
4+
15
**3.1.1 - 07/13/23**
26

37
- Changes version metadata to use setuptools_scm

0 commit comments

Comments
 (0)