-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Prepare for first release * Fix typo
- Loading branch information
Showing
5 changed files
with
85 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: TagBot | ||
on: | ||
issue_comment: | ||
types: | ||
- created | ||
workflow_dispatch: | ||
inputs: | ||
lookback: | ||
default: 3 | ||
permissions: | ||
actions: read | ||
checks: read | ||
contents: write | ||
deployments: read | ||
issues: read | ||
discussions: read | ||
packages: read | ||
pages: read | ||
pull-requests: read | ||
repository-projects: read | ||
security-events: read | ||
statuses: read | ||
jobs: | ||
TagBot: | ||
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: JuliaRegistries/TagBot@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
# Edit the following line to reflect the actual name of the GitHub Secret containing your private key | ||
ssh: ${{ secrets.DOCUMENTER_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
LibTrixi.jl/Project.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Developers | ||
|
||
## Release management | ||
|
||
We manage releases through the tools provided by the Julia community for creating and | ||
publishing new Julia package releases. Specifically, that means | ||
* we set the libtrixi version in | ||
[`LibTrixi.jl/Project.toml`](https://github.com/trixi-framework/libtrixi/blob/main/LibTrixi.jl/Project.toml), | ||
* we use the [Julia Registrator app](https://github.com/JuliaRegistries/Registrator.jl) | ||
for GitHub to register new versions of the Julia package LibTrixi.jl, and | ||
* we rely on the Julia [TagBot](https://github.com/JuliaRegistries/TagBot) | ||
to create associacted tags and GitHub releases once the Julia package is registered. | ||
|
||
To support the ability to have TagBot create top-level releases even though the Julia | ||
package LibTrixi.jl lives in a subdirectory, we have symlinked `LibTrixi.jl/Project.toml` to | ||
the repository root. | ||
|
||
### Creating a new release | ||
To create a new libtrixi release, follow these steps: | ||
1. Ensure that all tests have passed for the current commit in `main` and that coverage is | ||
OK (>95%). | ||
2. Bump the version in | ||
[`LibTrixi.jl/Project.toml`](https://github.com/trixi-framework/libtrixi/blob/main/LibTrixi.jl/Project.toml) | ||
to the next release version, following [semantic versioning](https://semver.org/). For | ||
example, if the current release is `v0.1.0`, the next release with breaking changes would | ||
be `v0.2.0`, while the next non-breaking release would be `v0.1.1`. Commit this change to `main`. | ||
3. Go to the [latest commit in `main`](https://github.com/trixi-framework/libtrixi/commit/HEAD) | ||
on the GitHub website. This should be the commit where you just updated the version. | ||
Scroll down and submit the following comment | ||
``` | ||
@JuliaRegistrator register subdir=LibTrixi.jl | ||
``` | ||
This will prompt the [Julia Registrator app](https://github.com/JuliaRegistries/Registrator.jl/) | ||
to create a new release of the Julia package LibTrixi.jl. If there are no issues found | ||
that would prevent auto-merging the version update PR in the Julia General registry | ||
(e.g., if you did not skip a version number), the new version will become active after | ||
about 15 minutes. See the full set of rules | ||
[here](https://github.com/JuliaRegistries/Registrator.jl/). | ||
4. The Julia Registrator app is chatty and will let you know if your registration request | ||
meets all criteria for an auto-merge. Once this is the case, bump the version in | ||
[`LibTrixi.jl/Project.toml`](https://github.com/trixi-framework/libtrixi/blob/main/LibTrixi.jl/Project.toml) | ||
again and set it to the next development version. We do this to prevent confusion about | ||
whether the current state of the repository is identical to the latest release or not. | ||
The next development version is obtained by increasing the *patch* number and appending | ||
`-pre`. For example, if you just released version `v0.1.1`, the next development version | ||
would be `v0.1.2-pre`. |
09aa0a8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register subdir=LibTrixi.jl
09aa0a8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/90629
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: