Skip to content

Increase project version to 1.2.0 #11

Increase project version to 1.2.0

Increase project version to 1.2.0 #11

Workflow file for this run

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 }}