Skip to content

Commit c9e369e

Browse files
authored
add GH release to release workflow (#229)
1 parent f2dd4b2 commit c9e369e

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/release.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ concurrency:
3333

3434
env:
3535
RELEASE_VERSION: ${{ inputs.version }}
36+
RELEASE_VERSION_TAG: v${{ inputs.version }}
3637

3738
jobs:
3839
validate-tag:
@@ -50,7 +51,7 @@ jobs:
5051
- name: Validate release tag does not exist in repo
5152
uses: ./.github/workflows/validate-tag
5253
with:
53-
tag: v${{ env.RELEASE_VERSION }}
54+
tag: ${{ env.RELEASE_VERSION_TAG }}
5455
- name: Validate tag match current version
5556
run: |
5657
if [ "$(./gradlew -q currentVersion)" != "${{ env.RELEASE_VERSION }}" ]; then
@@ -152,3 +153,23 @@ jobs:
152153
version: ${{ inputs.version }}
153154
phase: 'post'
154155
secrets: inherit
156+
157+
create-github-release:
158+
name: "Create GitHub Release"
159+
needs:
160+
- await-maven-central-artifact
161+
runs-on: ubuntu-latest
162+
if: ${{ ! inputs.dry_run }}
163+
permissions:
164+
contents: write
165+
steps:
166+
- uses: actions/checkout@v4
167+
with:
168+
ref: ${{ inputs.ref }}
169+
- name: Create GitHub Release
170+
env:
171+
GH_TOKEN: ${{ github.token }}
172+
run: |
173+
gh release create ${{ env.RELEASE_VERSION_TAG }} \
174+
--title="Release ${{ env.RELEASE_VERSION }}" \
175+
--notes=""

0 commit comments

Comments
 (0)