diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..cb54791 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,27 @@ +name: Deploy to PyPI +on: + release: + types: [released] +jobs: + pypi-publish: + if: github.repository_owner == 'mvdbeek' + name: Upload release to PyPI + runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/p/galaxy-release-util + permissions: + id-token: write + steps: + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - uses: actions/checkout@v3 + - name: Install build dependencies + run: pip install build twine + - name: Build package + run: python -m build + - name: twine check + run: twine check dist/* + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/setup.cfg b/setup.cfg index d80b48f..af53fff 100644 --- a/setup.cfg +++ b/setup.cfg @@ -27,7 +27,7 @@ long_description = file: README.rst, HISTORY.rst long_description_content_type = text/x-rst name = galaxy-release-util url = https://github.com/galaxyproject/galaxy-release-util -version = 23.1.dev0 +version = 0.1.0 [options] include_package_data = True