Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(release): add release-process.md #114

Merged
merged 1 commit into from
Oct 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions release-process.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Cutting a new release of the Cloud plugin

To cut a new release of the Cloud plugin, you will need to do the following:

1. Confirm that [CI is green](https://fermyon/cloud-plugin/actions) for the commit selected to be tagged and released.

1. Change the version number in [Cargo.toml](./Cargo.toml) and run `cargo build --release`.

1. Create a pull request with these changes and merge once approved.

1. Checkout the commit with the version bump from above.

1. Create and push a new tag with a `v` and then the version number.

As an example, via the `git` CLI:

```
# Create a GPG-signed and annotated tag
git tag -s -m "Fermyon Cloud Plugin v0.3.0" v0.3.0

# Push the tag to the remote corresponding to fermyon/cloud-plugin (here 'origin')
git push origin v0.3.0
```

1. Pushing the tag upstream will trigger the [release action](https://github.com/fermyon/cloud-plugin/actions/workflows/release.yml).
- The release build will create the packaged versions of the plugin, the updated plugin manifest and a checksums file
- These assets are uploaded to a new GitHub release for the pushed tag
- Release notes are auto-generated but edit as needed especially around breaking changes or other notable items

1. Create a PR in the [fermyon/spin-plugins](https://github.com/fermyon/spin-plugins) repository with the [updated manifest](https://github.com/fermyon/spin-plugins/tree/main/manifests/cloud).

1. If applicable, create PR(s) or coordinate [documentation](https://github.com/fermyon/developer) needs, e.g. for new features or updated functionality.