Skip to content

Commit

Permalink
add GH release to release workflow (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
SylvainJuge authored Apr 25, 2024
1 parent f2dd4b2 commit c9e369e
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ concurrency:

env:
RELEASE_VERSION: ${{ inputs.version }}
RELEASE_VERSION_TAG: v${{ inputs.version }}

jobs:
validate-tag:
Expand All @@ -50,7 +51,7 @@ jobs:
- name: Validate release tag does not exist in repo
uses: ./.github/workflows/validate-tag
with:
tag: v${{ env.RELEASE_VERSION }}
tag: ${{ env.RELEASE_VERSION_TAG }}
- name: Validate tag match current version
run: |
if [ "$(./gradlew -q currentVersion)" != "${{ env.RELEASE_VERSION }}" ]; then
Expand Down Expand Up @@ -152,3 +153,23 @@ jobs:
version: ${{ inputs.version }}
phase: 'post'
secrets: inherit

create-github-release:
name: "Create GitHub Release"
needs:
- await-maven-central-artifact
runs-on: ubuntu-latest
if: ${{ ! inputs.dry_run }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
- name: Create GitHub Release
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release create ${{ env.RELEASE_VERSION_TAG }} \
--title="Release ${{ env.RELEASE_VERSION }}" \
--notes=""

0 comments on commit c9e369e

Please sign in to comment.