-
Notifications
You must be signed in to change notification settings - Fork 26
41 lines (35 loc) · 1.25 KB
/
publish-to-pypi.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Publish to PyPI
on:
release:
types: [released]
jobs:
validate:
name: Validate metadata
runs-on: ubuntu-latest
steps:
- uses: spacetelescope/action-publish_to_pypi/validate@master
build_wheels:
name: Build wheels on ${{ matrix.os }}
needs: [validate]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: spacetelescope/action-publish_to_pypi/build-wheel@master
build_sdist:
name: Build source distribution
needs: [validate]
runs-on: ubuntu-latest
steps:
- uses: spacetelescope/action-publish_to_pypi/build-sdist@master
upload_pypi:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
steps:
- uses: spacetelescope/action-publish_to_pypi/publish@master
with:
test: ${{ secrets.PYPI_TEST }}
user: ${{ secrets.PYPI_USERNAME_STSCI_MAINTAINER }}
password: ${{ secrets.PYPI_PASSWORD_STSCI_MAINTAINER }} # WARNING: Do not hardcode secret values here! If you want to use a different user or password, you can override this secret by creating one with the same name in your Github repository settings.
test_password: ${{ secrets.PYPI_PASSWORD_STSCI_MAINTAINER_TEST }}