Skip to content

Commit 0b62fda

Browse files
authored
Update the release process (#102)
* remove the syncing step for stable * use build instead of the deprecated pep517.build [skip-ci] * only upload to pypi on the main repository [skip-ci]
1 parent 857f73a commit 0b62fda

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

.github/workflows/pypi.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
jobs:
88
deploy:
99
runs-on: ubuntu-latest
10+
if: github.repository == 'xarray-contrib/pint-xarray'
1011
steps:
1112
- uses: actions/checkout@v1
1213
- name: Set up Python
@@ -15,10 +16,11 @@ jobs:
1516
python-version: '3.x'
1617
- name: Install dependencies
1718
run: |
18-
python -m pip install --upgrade pip pep517 twine
19+
python -m pip install --upgrade pip
20+
python -m pip install build twine
1921
- name: Build
2022
run: |
21-
python -m pep517.build --source --binary --out-dir dist/ .
23+
python -m build --sdist --wheel --outdir dist/ .
2224
- name: Check the built archives
2325
run: |
2426
twine check dist/*

HOW_TO_RELEASE.rst

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,6 @@ Release process
3131
8. Draft a release for the new tag on github. A CI will pick that up, build the project
3232
and push to PyPI. Be careful, this can't be undone.
3333

34-
9. Update stable:
34+
9. Make sure readthedocs builds both `stable` and the new tag
3535

36-
.. code:: sh
37-
38-
git checkout stable
39-
git merge v0.X.Y
40-
git push origin stable
41-
42-
10. Make sure readthedocs builds both `stable` and the new tag
43-
44-
11. Add a new section to `whats-new.rst` and push directly to master
36+
10. Add a new section to `whats-new.rst` and push directly to master

0 commit comments

Comments
 (0)