build(deps): bump the versions group with 12 updates (#62) #106
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish release | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
gradle_validation: | |
uses: ./.github/workflows/gradle-wrapper-validation.yml | |
publish: | |
name: Publish library at mavenCentral | |
runs-on: ubuntu-latest | |
needs: [ gradle_validation ] | |
env: | |
makeevrserg_SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} | |
makeevrserg_SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} | |
makeevrserg_OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | |
makeevrserg_OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | |
makeevrserg_SIGNING_KEY: ${{ secrets.SIGNING_KEY }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 1.21 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Give gradle permission | |
run: chmod +x gradlew | |
- name: Prebuild library | |
run: ./gradlew publishToMavenLocal --stacktrace | |
- name: Publish library | |
run: ./gradlew publish --no-parallel --stacktrace | |
release: | |
needs: [ publish ] | |
name: Create release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: christian-draeger/read-properties@1.1.1 | |
id: properties | |
with: | |
path: './gradle.properties' | |
properties: 'makeevrserg.project.name makeevrserg.project.version.string' | |
- name: Create Release | |
id: create_release | |
uses: softprops/action-gh-release@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }} | |
with: | |
tag_name: ${{ steps.properties.outputs.makeevrserg-project-version-string }} | |
name: ${{ steps.properties.outputs.makeevrserg-project-name }} - ${{ steps.properties.outputs.makeevrserg-project-version-string }} | |
draft: false | |
prerelease: false |