Skip to content

Commit

Permalink
Update Release Procedure (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
akhmerov committed Mar 23, 2024
2 parents a53f95c + c16a82c commit b208c6e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
needs: [tests]
name: Publish to PyPi
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- name: Checkout source
uses: actions/checkout@v4
Expand All @@ -27,6 +30,3 @@ jobs:
run: python -m build
- name: Publish
uses: pypa/gh-action-pypi-publish@v1.8.14
with:
user: __token__
password: ${{ secrets.PYPI_KEY }}
24 changes: 10 additions & 14 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,22 @@ PyPI when a GitHub release is added.

To cut a new Jupyter Sphinx release, follow these steps:

- Ensure that all tests are passing on master.
- Ensure that all tests are passing on main.

- In [`_version.py`](https://github.com/jupyter/jupyter-sphinx/blob/main/jupyter_sphinx/_version.py),
update the version number:
- Create a pull request to bump the version:

```python
__version__ = "0.2.3"
```
- In [`_version.py`](https://github.com/jupyter/jupyter-sphinx/blob/main/jupyter_sphinx/_version.py),
update the version number:

- Make a release commit and push to main
```python
__version__ = "0.2.3"
```

```
git add jupyter_sphinx/_version.py
git commit -m "RLS: 0.2.3"
git push upstream main
```
- Merge the pull request.

- [Create a new github release](https://github.com/jupyter/jupyter-sphinx/releases/new).
- [Create a new Github Release](https://github.com/jupyter/jupyter-sphinx/releases/new).
The target should be **main**, the tag and the title should be the version number,
e.g. `v0.2.3`.
e.g. `v0.2.3`. Note that this requires "Maintain" permissions on the repository.

- Creating the release in GitHub will push a tag commit to the repository, which will
trigger [a GitHub action](https://github.com/jupyter/jupyter-sphinx/blob/main/.github/workflows/artifacts.yml)
Expand Down

0 comments on commit b208c6e

Please sign in to comment.