Skip to content

Commit 399a066

Browse files
Use GitHub Actions for PyPI publish on release (#663)
* Use GitHub Actions for PyPI publish on release * Remove copy/paste error
1 parent 3a00196 commit 399a066

File tree

2 files changed

+27
-7
lines changed

2 files changed

+27
-7
lines changed

.github/workflows/release.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish to PyPI
2+
on:
3+
push:
4+
tags:
5+
- "*.*.*"
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
if: github.repository == 'dask/dask-jobqueue'
10+
environment:
11+
name: pypi
12+
url: https://pypi.org/p/dask-jobqueue
13+
permissions:
14+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
15+
steps:
16+
- uses: actions/checkout@v3
17+
with:
18+
fetch-depth: 0
19+
- name: Set up Python 3.10
20+
uses: actions/setup-python@v1
21+
with:
22+
python-version: "3.10"
23+
- name: Build package
24+
run: pip install build && pyproject-build
25+
- name: Publish
26+
uses: pypa/gh-action-pypi-publish@release/v1

docs/release-procedure.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,7 @@ git tag -a x.x.x -m 'Version x.x.x'
2121
git push --tags upstream
2222
````
2323

24-
* Build the wheel/dist and upload to PyPI:
25-
26-
````
27-
git clean -xfd
28-
python setup.py sdist bdist_wheel --universal
29-
twine upload dist/*
30-
````
24+
* A [GitHub Actions workflow](../.github/workflows/release.yaml) will build the wheel/dist and upload to PyPI
3125

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

0 commit comments

Comments
 (0)