v1.3.16 #21
Workflow file for this run
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: "release-actions" | |
on: | |
release: | |
types: [ released ] | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Generate a token | |
id: generate_token | |
uses: tibdex/github-app-token@v2 | |
with: | |
app_id: ${{ secrets.APP_ID_ADMIN_GITHUB }} | |
private_key: ${{ secrets.APP_PRIVATE_KEY_ADMIN_GITHUB }} | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ steps.generate_token.outputs.token }} | |
- name: Set env | |
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV | |
- name: Upgrade Gradle.properties | |
run: sed -i 's/version=.*/version=${{ env.RELEASE_VERSION }}/g' gradle.properties | |
- name: Generate Changelog | |
uses: heinrichreimer/github-changelog-generator-action@v2.3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
pullRequests: true | |
prWoLabels: true | |
issues: true | |
issuesWoLabels: true | |
stripGeneratorNotice: true | |
- name: Save version | |
uses: github-actions-x/commit@v2.9 | |
with: | |
github-token: ${{ steps.generate_token.outputs.token }} | |
push-branch: "master" | |
commit-message: 'docs(version): Update version to ${{ env.RELEASE_VERSION }} [skip ci]' | |
force-add: "true" | |
force-push: "true" | |
files: CHANGELOG.md gradle.properties | |
name: Release Bot | |
email: release-bot@bancolombia.com.co | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Setup Javadoc | |
run: ./gradlew clean build -x test | |
- name: Prepare gpg key | |
run: | | |
mkdir -p ~/.gradle/ | |
echo "${{secrets.SIGNING_KEY_FILE}}" | base64 -d > ~/.gradle/secring.gpg | |
- name: Publish Libraries | |
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository -Psigning.keyId=${{ secrets.SIGNING_KEY_ID }} -Psigning.password=${{ secrets.SIGNING_KEY_PASSWORD }} -Psigning.secretKeyRingFile=$(echo ~/.gradle/secring.gpg) --info | |
env: | |
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.MAVEN_USERNAME }} | |
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.MAVEN_PASSWORD }} | |