You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/release.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,10 +9,10 @@ Consolidated release workflow that creates a draft release, optionally builds ar
9
9
permissions:
10
10
contents: write
11
11
pull-requests: read
12
-
packages: write# only needed if building images
13
-
id-token: write# only needed if creating attestations
14
-
attestations: write# only needed if creating attestations
15
-
discussions: write# only needed if creating discussions
12
+
packages: write
13
+
id-token: write
14
+
attestations: write
15
+
discussions: write
16
16
with:
17
17
# Publish the release after all jobs complete. When false, the release
18
18
# remains a draft for manual review. Default is true.
@@ -42,6 +42,7 @@ Consolidated release workflow that creates a draft release, optionally builds ar
42
42
# Attestation is only available for public repositories. Private repos
43
43
# will see a warning and skip attestation automatically.
44
44
create-attestation: true
45
+
create-discussion: true
45
46
46
47
secrets:
47
48
# The GitHub token to use (required)
@@ -81,7 +82,7 @@ The workflow runs up to six jobs:
81
82
1. **create_release** - Always runs. Creates a draft release via release-drafter, then creates and pushes the full and major version git tags.
82
83
2. **release_goreleaser** - Runs when `goreleaser-config-path` is set. Builds Go binaries, uploads artifacts to the draft release, and optionally creates attestations.
83
84
3. **release_image** - Runs when `image-name` is set. Builds and pushes a multi-platform Docker image, and optionally creates attestations.
84
-
4. **release_discussion** - Runs when both `discussion-category-id` and `discussion-repository-id` secrets are set. Creates a GitHub Discussions announcement.
85
+
4. **release_discussion** - Runs when `create-discussion` is set. Both `discussion-category-id` and `discussion-repository-id` secrets are required if so. Creates a GitHub Discussions announcement.
85
86
5. **publish_release** - Runs when `publish` is true and all preceding jobs succeed (or are skipped). Publishes the draft release.
0 commit comments