Skip to content

Commit 90a6311

Browse files
committed
chore: draft release on new tag
1 parent fa20510 commit 90a6311

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ permissions:
1515

1616
jobs:
1717
goreleaser:
18-
environment: production
1918
runs-on: ubuntu-latest
2019
steps:
2120
- uses: actions/checkout@v4
@@ -38,6 +37,13 @@ jobs:
3837
# GitHub sets the GITHUB_TOKEN secret automatically.
3938
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4039
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
40+
41+
publish:
42+
needs:
43+
- goreleaser
44+
environment: production
45+
runs-on: ubuntu-latest
46+
steps:
4147
- run: gh release edit ${{ github.ref_name }} --draft=false
4248
env:
4349
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ release:
5656
name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json'
5757
# If you want to manually examine the release before its live, uncomment this line:
5858
draft: true
59+
replace_existing_draft: true
5960
changelog:
6061
use: github
6162
groups:

0 commit comments

Comments
 (0)