Skip to content

Commit

Permalink
More publish process tinkering
Browse files Browse the repository at this point in the history
  • Loading branch information
davidorme committed Apr 4, 2024
1 parent fa4b5c5 commit 293fc27
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/pyrealm_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,10 @@ jobs:
steps:
# Echo the release name
- name: Echo release name
run: echo ${{github.event.release.name}}

run: |
echo ${{github.event.release.name}}
echo ${{ contains('test-pypi-only', github.event.release.name)}}
echo ${{ ! contains('test-pypi-only', github.event.release.name)}}
# Download the built package files from the job artifacts
- name: Download sdist artifact
uses: actions/download-artifact@v4
Expand Down
11 changes: 10 additions & 1 deletion docs/source/development/release_process.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ kernelspec:

# Package release process

The package release process has three stages:
The package release process has four stages. The last two steps are automated:

* Merge changes from the `develop` branch onto `main` that will form the new release
version.
Expand Down Expand Up @@ -107,6 +107,15 @@ a target branch. The steps are:

1. Once everyone is agreed **publish the release**.

## Publish the package on Zenodo

The `pyrealm` package is set up to publish on Zenodo automatically when a release is
published. This saves a zip file of the repository as a new Zenodo record, under the
[`pyrealm` concept ID](https://zenodo.org/doi/10.5281/zenodo.8366847).

This process can be turned off for test releases but only through the owning Zenodo
account, which belongs to David Orme.

## Publish the package on PyPI

We publish to _two_ package servers:
Expand Down

0 comments on commit 293fc27

Please sign in to comment.