From d80230e033cf2e7bd6e2a75c268a2e4828e56363 Mon Sep 17 00:00:00 2001 From: Shay Carter Date: Wed, 5 Jan 2022 14:01:19 -0700 Subject: [PATCH] Add in logic for publishing release to pypi --- .github/workflows/release.yml | 36 +++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 22b103f..e967a27 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }}