Skip to content

Commit

Permalink
Update release instructions to use git tag from cli. (#488)
Browse files Browse the repository at this point in the history
* Use git tag from cli.

Signed-off-by: Ville Aikas <[email protected]>

* add blurp about release notes.

Signed-off-by: Ville Aikas <[email protected]>

Signed-off-by: Ville Aikas <[email protected]>
  • Loading branch information
vaikas committed Dec 2, 2022
1 parent 2b8624f commit 601e594
Showing 1 changed file with 48 additions and 10 deletions.
58 changes: 48 additions & 10 deletions release.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,51 @@ You should be part of the `scaffolding-codeowners` or `sigstore-oncall` groups,

## Steps

1. Visit <https://github.com/sigstore/scaffolding/releases/new>
1. Click on the `Choose a tag` drop-down
1. For the tag name, use a new version number, for instance: v0.4.11
1. Click on the `+ Create new tag: v0.4.11 on publish` button that appears.
1. For the release title, use the tag name: v0.4.11,
1. Click the `Generate release notes` button
1. Click the `Save Draft` button to trigger the `Release` action.
1. Monitor the [`Release` action](https://github.com/sigstore/scaffolding/actions/workflows/release.yaml), which generates the remaining release artifacts
1. Once the `Release` action has been completed successfully, find your draft release at the [releases page](https://github.com/sigstore/scaffolding/releases)
1. Click the green "Publish release" button
### Make sure your local branch is up-to-date from the upstream, for example:

```shell
git pull upstream main --tags
```

### Verify the correct version you're about to tag:

```shell
git tag
```

This will list all the tags, so the latest (at the time of this writing), was:
`v0.5.1`

```shell
vaikas@villes-mbp scaffolding % git tag
v0.1-alpha
v0.1.1-alpha
v0.1.10-alpha
v0.1.11-alpha
<SNIPPED FOR READABILITY>
v0.4.9
v0.5.0
v0.5.1
```

So, I will release `v0.5.2`

### Tag the release with the new version number, for instance `v0.5.2`

```shell
git tag -a v0.5.2 -m "v0.5.2"
```

### Push the tag

```shell
git push upstream v0.5.2
```

### Monitor the [`Release` action](https://github.com/sigstore/scaffolding/actions/workflows/release.yaml), which generates the remaining release artifacts

### Once the `Release` action has been completed successfully, find your draft release at the [releases page](https://github.com/sigstore/scaffolding/releases)

### Update the release notes by clicking on the `Generate release notes` button

### Click the green "Publish release" button

0 comments on commit 601e594

Please sign in to comment.