Update libs.versions.toml #13
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/call-gradle-wrapper-validation.yml | |
publish: | |
name: Publish library at mavenCentral | |
runs-on: macOS-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 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- 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/[email protected] | |
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 |