Skip to content

Commit 842eb63

Browse files
authored
Merge pull request #164 from AllenInstitute/pypi_deploy
actions: add publish on release action
2 parents 4504c10 + 4315f24 commit 842eb63

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/release_publish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: release_publish
2+
on:
3+
# workflow_dispatch:
4+
release:
5+
types: [published]
6+
jobs:
7+
pypi_publish:
8+
name: Deploy to pypi
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Check out repo
12+
uses: actions/checkout@v2
13+
14+
- name: Build
15+
run: python setup.py sdist bdist_wheel
16+
17+
- name: Publish to Pypi
18+
uses: pypa/gh-action-pypi-publish@release/v1
19+
with:
20+
user: __token__
21+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)