Skip to content

Commit 4ea3492

Browse files
authored
Upgrade and release docs (#10)
* Bump e-g minimum version to 0.7.1 * Add release docs * Changelog entry
1 parent 685cbc3 commit 4ea3492

File tree

3 files changed

+66
-2
lines changed

3 files changed

+66
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
## [Unreleased] - ReleaseDate
88

9+
- [#10](https://github.com/embedded-graphics/tinybmp/pull/10) Bump embedded-graphics minimum version from 0.7.0 to 0.7.1
10+
911
## [0.4.0] - 2021-06-06
1012

1113
## [0.4.0-beta.1] - 2021-05-24
@@ -105,10 +107,10 @@
105107
- [#218](https://github.com/embedded-graphics/embedded-graphics/pull/218) Test README examples in CI and update them to work with latest crate versions.
106108

107109
<!-- next-url -->
110+
108111
[unreleased]: https://github.com/embedded-graphics/tinytga/compare/v0.4.0...HEAD
109112
[0.4.0]: https://github.com/embedded-graphics/tinytga/compare/v0.4.0-beta.1...v0.4.0
110113
[0.4.0-beta.1]: https://github.com/embedded-graphics/tinytga/compare/v0.4.0-alpha.1...v0.4.0-beta.1
111-
112114
[0.4.0-alpha.1]: https://github.com/embedded-graphics/tinytga/compare/after-split...v0.4.0-alpha.1
113115
[0.4.0-alpha.1 - `embedded-graphics` repository]: https://github.com/embedded-graphics/embedded-graphics/compare/tinytga-v0.3.2...before-split
114116
[0.3.2]: https://github.com/embedded-graphics/embedded-graphics/compare/tinytga-v0.3.0...tinytga-v0.3.2

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ exclude = [
2020
circle-ci = { repository = "embedded-graphics/tinytga", branch = "master" }
2121

2222
[dependencies]
23-
embedded-graphics = "0.7.0"
23+
embedded-graphics = "0.7.1"
2424
nom = { version = "6.0.1", default-features = false }
2525

2626
[dev-dependencies]

doc/releasing.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Release process
2+
3+
Target audience: crate maintainers who wish to release `tinytga`.
4+
5+
> Please take a cautious approach to this. If any step doesn't feel right or doesn't succeed smoothly, stop and rectify any issues before continuing.
6+
7+
## On GitHub
8+
9+
- Check that all desired PRs are merged and all desired issues are closed/resolved.
10+
- Check that the latest master build passed in CircleCI.
11+
12+
## On your local machine
13+
14+
- `cd` to the repository root
15+
- Check that `cargo-release` is installed and available in `$PATH`:
16+
17+
```bash
18+
cargo release --version
19+
```
20+
21+
- Ensure you have the latest changes with `git switch master` and `git pull --rebase`
22+
- Check that your local repository is clean with no uncommitted changes and no unpushed commits. Ideally, use `git reset --hard origin/master` to ensure your local state is up to date with `origin/master`. You may need to change `origin` to the name of the remote pointing to <https://github.com/embedded-graphics/tinytga>.
23+
- Before a **stable** release:
24+
- Search the repository for any `TODO` or `FIXME` comments. If any need resolving before release, stop this process and fix them with one or more PRs.
25+
- Check that the crate version in `Cargo.toml` matches the latest released versions on <https://crates.io/crates/tinytga>.
26+
- Run `just build` to ensure the build passes locally.
27+
- If the build fails for any reason, stop the release process and fix any issues by creating PRs. The upstream master branch must remain the source of truth. Restart this checklist once `just build` passes.
28+
- Double check the release level (major, minor, patch)
29+
- Release the crate:
30+
31+
```bash
32+
cargo release <level>
33+
```
34+
35+
Where `<level>` is `major`, `minor`, `patch`, or a specific SemVer version number.
36+
37+
## Post release
38+
39+
- Check that the release command pushed a Git tag when the crate was published, something like `v0.4.0-beta.1` or `v0.3.1`.
40+
- For the new tag, go to its page at e.g. <https://github.com/embedded-graphics/tinytga/releases/tag/v0.4.0-beta.1>, click <kbd>Edit tag</kbd> and draft a release:
41+
42+
- Copy and paste the tag into the `Release title` field.
43+
- Copy and paste the latest released section out of the crate's `CHANGELOG.md` file into the `Describe this release` field. Do not include the version header, e.g.:
44+
45+
```markdown
46+
### Added
47+
48+
- [#111](https://github.com/embedded-graphics/tinytga/pull/111) Added something
49+
50+
### Removed
51+
52+
- [#222](https://github.com/embedded-graphics/tinytga/pull/222) Removed a thing
53+
```
54+
55+
- For `alpha` or `beta` releases, check the `This is a pre-release` checkbox.
56+
- Hit <kbd>Publish release</kbd>
57+
58+
- Check that the release is displayed on the [repository homepage](https://github.com/embedded-graphics/tinytga).
59+
- Post a link to the released tag (e.g. <https://github.com/embedded-graphics/tinytga/releases/tag/v0.4.0-beta.1>) to the embedded-graphics Matrix room at <https://matrix.to/#/!SfJCDXZbMHXkPovtKL:matrix.org>
60+
- If you are @jamwaffles, post a Tweet tagging @rustembedded with a happy announcement message.
61+
62+
- Check the other repositories in the [embedded-graphics organization](https://github.com/embedded-graphics) for dependencies on `tinytga`. The version should be updated to the latest releases made whilst following this guide.

0 commit comments

Comments
 (0)