Release 1.1.2 #11
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 Tag | |
on: | |
push: | |
tags: | |
- "v*" | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: temurin | |
- name: Set up Kotlin | |
uses: fwilhe2/setup-kotlin@main | |
- name: Set up Gradle properties | |
run: | | |
mkdir -p ~/.gradle | |
echo "org.gradle.jvmargs=-XX:MaxMetaspaceSize=5G" >> ~/.gradle/gradle.properties | |
echo -e "\nsigning.gnupg.keyName=BFAAD5D6093EF5E62BC9A16A10DB8C6B4AE61C2F" >> ~/.gradle/gradle.properties | |
echo -e "\nsigning.gnupg.passphrase=${{ secrets.GPG_PASSWORD }}" >> ~/.gradle/gradle.properties | |
- name: Set up git credentials | |
uses: oleksiyrudenko/gha-git-credentials@v2 | |
with: | |
global: true | |
token: '${{ secrets.GITHUB_TOKEN }}' | |
- name: Gradle (Setup) | |
uses: gradle/actions/setup-gradle@v3 | |
with: | |
dependency-graph: generate-and-submit | |
- name: Gradle (Build) | |
run: "./gradlew checkLicenses build publishToMavenLocal" | |
env: | |
ORG_GRADLE_PROJECT_signingKey: "${{ secrets.GPG_KEY }}" | |
ORG_GRADLE_PROJECT_signingPassword: "${{ secrets.GPG_PASSWORD }}" | |
GRADLE_PUBLISH_KEY: "${{ secrets.GRADLE_PUBLISH_KEY }}" | |
GRADLE_PUBLISH_SECRET: "${{ secrets.GRADLE_PUBLISH_SECRET }}" | |
TOKEN: "${{ secrets.TOKEN }}" | |
- name: Gradle (Test) | |
run: "./gradlew build --info --stacktrace" | |
working-directory: "./testModule" | |
- name: Gradle (Publish) | |
run: "./gradlew publishPlugins" | |
env: | |
ORG_GRADLE_PROJECT_signingKey: "${{ secrets.GPG_KEY }}" | |
ORG_GRADLE_PROJECT_signingPassword: "${{ secrets.GPG_PASSWORD }}" | |
GRADLE_PUBLISH_KEY: "${{ secrets.GRADLE_PUBLISH_KEY }}" | |
GRADLE_PUBLISH_SECRET: "${{ secrets.GRADLE_PUBLISH_SECRET }}" | |
TOKEN: "${{ secrets.TOKEN }}" | |
- name: Create release description | |
run: kotlin .github/tag.main.kts | |
- name: Get tag name | |
id: get_tag | |
run: echo ::set-output name=NAME::${GITHUB_REF#refs/tags/} | |
- name: Create Release | |
uses: softprops/action-gh-release@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
body_path: release.md | |
name: Release ${{ steps.get_tag.outputs.NAME }} | |
files: | | |
*/build/libs/*.jar | |
- name: Release webhook | |
run: kotlin .github/release.main.kts | |
env: | |
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }} | |
- name: Upload plugin JARs | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Plugin JARs | |
path: "*/build/libs/*.jar" | |