Skip to content

Commit 5bfde92

Browse files
RMelililyminium
andauthored
Improve release instructions (#418)
* update * Update doc/source/preparing_releases_and_hotfixes.rst * Update doc/source/preparing_releases_and_hotfixes.rst Co-authored-by: Lily Wang <[email protected]> --------- Co-authored-by: Lily Wang <[email protected]>
1 parent 55ca9a3 commit 5bfde92

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

doc/source/preparing_releases_and_hotfixes.rst

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ For now, the UserGuide is released at the same time as the core library. If it's
170170
cd doc/source/scripts
171171
python -m pytest tests/snapshot/ --snapshot-update
172172
173+
#. Define the ``GITHUB_TOKEN`` environment variable with a GitHub personal access token that has the ``repo`` scope.
174+
The access token is used by the script at the next step.
175+
173176
#. Make a Pull Request with a re-generated ``releases.md`` which contains a copy of the GitHub release notes. This can be generated by doing:
174177

175178
.. code-block:: bash
@@ -186,6 +189,8 @@ For now, the UserGuide is released at the same time as the core library. If it's
186189
187190
#. This will automatically trigger a Github Action to build a new set of docs for that release and upload them. Due to the large size of the ``gh-pages`` branch on the UserGuide, this can be both slow and flaky, make sure to keep an eye out for any potential failures.
188191

192+
#. Follow the instructions in the `Clean up old development builds`_ section to remove old developer builds of the documentation.
193+
189194

190195
Create a blog post outlining the release
191196
----------------------------------------
@@ -205,10 +210,13 @@ Once the release is completed you can go ahead and update the ``develop`` branch
205210
#. Once these changes are merged into the ``develop`` branch, message the developers on discord and GitHub Discussions letting them know that the feature freeze is over.
206211

207212

208-
Clean up old developer builds of the documentation
209-
--------------------------------------------------
213+
.. _Clean up old development builds:
214+
Clean up old developement builds
215+
--------------------------------
216+
217+
Whilst new docs are automatically deployed on a release, old developer builds (appended with ``-dev``) are not automatically cleaned up. To avoid causing large amounts of files being uploaded to GitHub Pages, we need to delete these old developer builds manually. To do this switch to the ``gh-pages`` branch, make sure it is up to date with upstream (i.e., run ``git pull`` ), delete the old files, and push the change directly. You should do this for both the core library and the UserGuide.
210218

211-
Whilst new docs are automatically deployed on a release, old developer builds (appended with ``-dev``) are not automatically cleaned up. To avoid causing large amounts of files being uploaded to GitHub Pages, we need to delete these old developer builds manually. To do this switch to the ``gh-pages`` branch, delete these old files, and push the change directly. You should do this for both the core library and the UserGuide.
219+
In addition, update `versions.json` to remove the old `-dev` entry.
212220

213221
While this is still a manual procedure, you should also edit `versions.json` to remove the old dev links.
214222

0 commit comments

Comments
 (0)