Skip to content

Commit

Permalink
fixes for go-releaser configuration (#1148)
Browse files Browse the repository at this point in the history
* set the pre-release status if the tag contains alpha, beta or rc

* add separate filter for final releases
  • Loading branch information
crodriguezvega authored Mar 21, 2022
1 parent 163fbc4 commit 40f9da1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+-?[a-z0-9]*' # Push events to matching v*, i.e. v1.0.0, v20.15.10, v3.0.0-alpha1
- 'v[0-9]+.[0-9]+.[0-9]+' # Push events to matching v*, i.e. v1.0.0, v20.15.10
- 'v[0-9]+.[0-9]+.[0-9]+-?[a-z0-9]+' # Push events to matching v*-[alpha/beta/rc], i.e. v3.0.0-alpha1, v3.0.0-beta1, v3.0.0-rc0

jobs:
goreleaser:
Expand Down
3 changes: 2 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ checksum:

release:
mode: keep-existing
prerelease: auto

archives:
- name_template: "{{ .ProjectName }}_simd_v{{ .Version }}_{{ .Os }}_{{ .Arch }}"
Expand All @@ -32,4 +33,4 @@ archives:
- README.md
- RELEASES.md
- SECURITY.md
- CHANGELOG.md
- CHANGELOG.md

0 comments on commit 40f9da1

Please sign in to comment.