Merge pull request #9 from srcarter3/release-testing

Add in logic for publishing release to pypi
This commit is contained in:
srcarter3 2022-01-05 13:02:45 -08:00 committed by GitHub
commit bb9f1aba5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,21 +32,21 @@ jobs:
path: dist/
retention-days: 5
# publish:
# name: Publish to PyPI
# needs: build
# environment:
# name: PyPI
# url: https://pypi.org/project/python-awips/
# runs-on: ubuntu-latest
# steps:
# - name: Download packages
# uses: actions/download-artifact@v2
# with:
# path: ./dist
#
# - name: Publish Package
# uses: pypa/gh-action-pypi-publish@v1.4.2
# with:
# user: __token__
# password: ${{ secrets.PYPI_TOKEN }}
publish:
name: Publish to PyPI
needs: build
environment:
name: PyPI
url: https://pypi.org/project/python-awips/
runs-on: ubuntu-latest
steps:
- name: Download packages
uses: actions/download-artifact@v2
with:
path: ./dist
- name: Publish Package
uses: pypa/gh-action-pypi-publish@v1.4.2
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}