File tree Expand file tree Collapse file tree 2 files changed +27
-7
lines changed Expand file tree Collapse file tree 2 files changed +27
-7
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -21,13 +21,7 @@ git tag -a x.x.x -m 'Version x.x.x'
21
21
git push --tags upstream
22
22
````
23
23
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
31
25
32
26
* The Conda Forge bots should pick up the change automatically within an hour
33
27
or two. Then follow the instructions from the automatic e-mail that you will
You can’t perform that action at this time.
0 commit comments