Skip to content

Commit

Permalink
Use GitHub Actions for PyPI publish on release
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtomlinson committed Aug 21, 2024
1 parent 3a00196 commit ce0543e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 7 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish to PyPI
on:
push:
tags:
- "*.*.*"
jobs:
publish:
runs-on: ubuntu-latest
if: github.repository == 'dask/dask-jobqueue'
environment:
name: pypi
url: https://pypi.org/p/dask-jobqueue
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python 3.10
uses: actions/setup-python@v1
with:
python-version: "3.10"
- name: Build package
run: pip install build && pyproject-build
- name: Publish kr8s
uses: pypa/gh-action-pypi-publish@release/v1
8 changes: 1 addition & 7 deletions docs/release-procedure.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,7 @@ git tag -a x.x.x -m 'Version x.x.x'
git push --tags upstream
````

* Build the wheel/dist and upload to PyPI:

````
git clean -xfd
python setup.py sdist bdist_wheel --universal
twine upload dist/*
````
* A [GitHub Actions workflow](../.github/workflows/release.yaml) will build the wheel/dist and upload to PyPI

* The Conda Forge bots should pick up the change automatically within an hour
or two. Then follow the instructions from the automatic e-mail that you will
Expand Down

0 comments on commit ce0543e

Please sign in to comment.