Skip to content

Commit a05208b

Browse files
authored
ci: publish GoReleaser drafts after artifact upload
Configure GoReleaser releases to stay draft during artifact upload, then publish the draft after release workflow steps complete.
1 parent 2ffba8c commit a05208b

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,8 @@ jobs:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3131
GOPRIVATE: github.com/GoCodeAlone/*
3232
GONOSUMCHECK: github.com/GoCodeAlone/*
33+
- name: Publish GitHub release
34+
if: ${{ success() }}
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
run: gh release edit "${{ github.ref_name }}" --draft=false --repo "${{ github.repository }}"

.goreleaser.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ checksum:
3636
name_template: "checksums.txt"
3737

3838
release:
39+
draft: true
3940
github:
4041
owner: GoCodeAlone
4142
name: workflow-plugin-github

0 commit comments

Comments
 (0)