Skip to content

Commit b50e8a9

Browse files
authored
Activate automatic publication to PyPI upon release (spacetelescope#18)
1 parent 0a69270 commit b50e8a9

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
jobs:
8+
build:
9+
name: Publish release to PyPI
10+
env:
11+
PYPI_USERNAME_STSCI_MAINTAINER: ${{ secrets.PYPI_USERNAME_STSCI_MAINTAINER }}
12+
PYPI_PASSWORD_STSCI_MAINTAINER: ${{ secrets.PYPI_PASSWORD_STSCI_MAINTAINER }}
13+
PYPI_USERNAME_OVERRIDE: ${{ secrets.PYPI_USERNAME_OVERRIDE }}
14+
PYPI_PASSWORD_OVERRIDE: ${{ secrets.PYPI_PASSWORD_OVERRIDE }}
15+
PYPI_TEST: ${{ secrets.PYPI_TEST }}
16+
INDEX_URL_OVERRIDE: ${{ secrets.INDEX_URL_OVERRIDE }}
17+
runs-on: ubuntu-latest
18+
steps:
19+
20+
# Check out the commit containing this workflow file.
21+
- name: checkout repo
22+
uses: actions/checkout@v2
23+
24+
- name: custom action
25+
uses: spacetelescope/action-publish_to_pypi@master
26+
id: custom_action_0

0 commit comments

Comments
 (0)