diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index ad9e1206..7d110235 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -7,24 +7,40 @@ on: types: [created] jobs: - deploy: - + release-build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: '3.x' - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine - - name: Build and publish - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: | - python setup.py sdist bdist_wheel - twine upload dist/* + python3 -m pip install build + - name: Build a binary wheel and source tarball + run: python3 -m build + - name: Upload artifacts + uses: actions/upload-artifacts@v4 + with: + name: release-dists + path: dist/ + + pypi-publish: + name: Publish Package to PyPI + runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/') + needs: + - release-build + permission: + id-token: write + + steps: + - name: Retrieve release distributions + uses: actions/download-artifact@v4 + with: + name: release-dists + path: dist/ + - name: Publish release distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/goodman_pipeline/version.py b/goodman_pipeline/version.py index c3bb1098..11d9e9c2 100644 --- a/goodman_pipeline/version.py +++ b/goodman_pipeline/version.py @@ -1,2 +1,2 @@ # This is an automatic generated file please do not edit -__version__ = '1.3.7' \ No newline at end of file +__version__ = '1.3.8' \ No newline at end of file