Skip to content

Commit

Permalink
Merge pull request #121 from philips-labs/improvements
Browse files Browse the repository at this point in the history
Improvements
  • Loading branch information
marcofranssen authored Jan 14, 2022
2 parents 58d245d + 43d7a70 commit 5f93fbd
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .goreleaser.draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,8 @@ release:
prerelease: auto
extra_files:
- glob: "./cosign.pub"
footer: |
{{- if .repository }}
**Full Changelog**: {{ .repository }}/compare/{{ .PreviousTag }}...{{ .Tag }}
{{- end }}
---
5 changes: 5 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,8 @@ release:
prerelease: auto
extra_files:
- glob: "./cosign.pub"
footer: |
{{- if .repository }}
**Full Changelog**: {{ .repository }}/compare/{{ .PreviousTag }}...{{ .Tag }}
{{- end }}
---
4 changes: 3 additions & 1 deletion release.md → RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
To make a new release you can make use of the following `make` task.

```bash
make gh-release NEW_VERSION=v0.6.0 OLD_VERSION=v0.5.1-draft DESCRIPTION="A test release to see how it works"
make gh-release NEW_VERSION=v0.6.0 OLD_VERSION=v0.5.0 DESCRIPTION="A test release to see how it works"
```

`NEW_VERSION` the version that you want to release.
Expand All @@ -15,6 +15,8 @@ make gh-release NEW_VERSION=v0.6.0 OLD_VERSION=v0.5.1-draft DESCRIPTION="A test
Visit <https://github.com/philips-labs/slsa-provenance-action/releases>.
Edit the release and save it to publish to GitHub Marketplace.

> :warning: **NOTE:** when you need to test some changes in `.goreleaser.yml`, also apply the changes to `.goreleaser.draft.yml`. Then make sure your new `tag` ends with `-draft` (e.g.: `v0.7.0-draft`) to make a draft release to not notify our consumers when testing updates to the release process.
### ⚠ Important alert for MacOS users ⚠

On MacOS `sed` has different behaviour and therefore doesn't work out of the box.
Expand Down
2 changes: 1 addition & 1 deletion lib/github/releases_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func TestListReleases(t *testing.T) {
api := "https://api.github.com/repos/philips-labs/slsa-provenance-action/releases"

client, requestLogger := createReleaseClient(ctx)
opt := gh.ListOptions{PerPage: 4}
opt := gh.ListOptions{PerPage: 5}
releases, err := client.ListReleases(ctx, owner, repo, opt)
if !assert.NoError(err) {
return
Expand Down

0 comments on commit 5f93fbd

Please sign in to comment.