Skip to content

Commit

Permalink
Merge pull request #119 from DLHub-Argonne/add-publish-to-pypi
Browse files Browse the repository at this point in the history
Create release.yml
  • Loading branch information
WardLT committed Sep 17, 2021
2 parents 1af5d7d + 41f97e9 commit 4af1167
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish to PyPi

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: pypi-publish
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_TOKEN }}

0 comments on commit 4af1167

Please sign in to comment.