Skip to content

Add release metadata #2

Add release metadata

Add release metadata #2

Workflow file for this run

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@v4
with:
dependency-graph: generate-and-submit
- name: Gradle (Build and Publish)
run: "./gradlew checkLicenses build publish"
env:
ORG_GRADLE_PROJECT_signingKey: "${{ secrets.GPG_KEY }}"
ORG_GRADLE_PROJECT_signingPassword: "${{ secrets.GPG_PASSWORD }}"
KORDEX_MAVEN_PASSWORD: "${{ secrets.KORDEX_MAVEN_PASSWORD }}"
KORDEX_MAVEN_USERNAME: "${{ secrets.KORDEX_MAVEN_USERNAME }}"
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: |
i18n-generator/build/libs/*.jar
- name: Release webhook
run: kotlin .github/release.main.kts
env:
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
- name: Upload JARs
uses: actions/upload-artifact@v4
with:
name: Generator JARs
path: "i18n-generator/build/libs/*.jar"
- name: Upload JARs
uses: actions/upload-artifact@v4
with:
name: Generator CLI JAR
path: "i18n-generator/build/libs/*-all.jar"