Skip to content

Commit

Permalink
chore: release on any tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mworzala committed Apr 25, 2024
1 parent 1b6ee8b commit c48ce78
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Gradle Publish to Maven Central
on:
push:
tags:
- '.+-rv\d+'
- '*'

jobs:
build:
Expand All @@ -15,16 +15,16 @@ jobs:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSWORD }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v2
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Publish to Sonatype
env:
TAG_VERSION: ${{ github.ref_name }}
run: |
./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository -Peula=true
./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
echo "Version: ${TAG_VERSION}" >> $GITHUB_STEP_SUMMARY

0 comments on commit c48ce78

Please sign in to comment.