Increase project version to 1.2.0 #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 | |
on: | |
push: | |
tags: | |
- v* | |
permissions: | |
contents: write # to fetch code and create release | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 11 | |
- name: Set up Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Get tag version | |
id: get_version | |
run: | | |
# Remove leading `v` from short ref name | |
version="${GITHUB_REF_NAME#v}" | |
echo "version=${version}" >> $GITHUB_OUTPUT | |
echo "Version: ${version}" | |
- name: Create release artifacts | |
run: ./gradlew jar shadowJar sourcesJar dokkaJavadocJar dokkaHtmlJar | |
- name: Create release and upload artifacts | |
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v0.1.15 | |
with: | |
name: Tiny Lingua ${{ steps.get_version.outputs.version }} | |
files: build/libs/*.jar | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |