Skip to content

Commit f10ed3c

Browse files
committed
Fix: Create release in draft mode, upload assets, and then publish release
1 parent b5e1262 commit f10ed3c

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/workflows/release.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,9 @@ jobs:
9999
run: "echo \"RELEASE_TAG=${GITHUB_REF#refs/tags/}\" >> $GITHUB_ENV"
100100

101101
- name: "Create release"
102-
uses: "ergebnis/.github/actions/github/release/create@1.9.3"
102+
uses: "ergebnis/.github/actions/github/release/create@1.10.0"
103103
with:
104+
draft: "true"
104105
github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}"
105106

106107
- name: "Upload release assets"
@@ -136,6 +137,12 @@ jobs:
136137
}
137138
}
138139
140+
- name: "Publish release"
141+
uses: "ergebnis/.github/actions/github/release/publish@1.10.0"
142+
with:
143+
github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}"
144+
release-id: "${{ env.RELEASE_ID }}"
145+
139146
- name: "Post to twitter.com about release"
140147
uses: "Eomm/why-don-t-you-tweet@v2.0.0"
141148
env:

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
88

99
For a full diff see [`2.48.0...main`][2.48.0...main].
1010

11+
### Fixed
12+
13+
- Adjusted release workflow to create a release in draft mode, upload release assets, and then publish the release ([#1496]), by [@localheinz]
14+
1115
## [`2.48.0`][2.48.0]
1216

1317
For a full diff see [`2.47.0...2.48.0`][2.47.0...2.48.0].
@@ -1312,6 +1316,7 @@ For a full diff see [`81bc3a8...0.1.0`][81bc3a8...0.1.0].
13121316
[#1485]: https://github.com/ergebnis/composer-normalize/pull/1485
13131317
[#1490]: https://github.com/ergebnis/composer-normalize/pull/1490
13141318
[#1493]: https://github.com/ergebnis/composer-normalize/pull/1493
1319+
[#1496]: https://github.com/ergebnis/composer-normalize/pull/1496
13151320

13161321
[@AlexSkrypnyk]: https://github.com/AlexSkrypnyk
13171322
[@andrey-helldar]: https://github.com/andrey-helldar

0 commit comments

Comments
 (0)