Skip to content

Commit

Permalink
Add publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Jun 13, 2023
1 parent f68b6c6 commit b3c9009
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b3c9009

Please sign in to comment.