Skip to content

Merge pull request #68 from Astra-Interactive/dependabot/gradle/versi… #109

Merge pull request #68 from Astra-Interactive/dependabot/gradle/versi…

Merge pull request #68 from Astra-Interactive/dependabot/gradle/versi… #109

Workflow file for this run

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:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.ORG_GRADLE_PROJECT_MAVENCENTRALUSERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_GRADLE_PROJECT_MAVENCENTRALPASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGINMEMORYKEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGINMEMORYKEYID }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGINMEMORYKEYPASSWORD }}
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