Skip to content

Release

Release #1

Workflow file for this run

name: Release
on:
release:
types: [created]
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Load GitHub credentials
run: echo "gpr.user=${{ secrets.GH_ACTOR }}" >> ~/.gradle/gradle.properties
- run: echo "gpr.token=${{ secrets.GH_TOKEN }}" >> ~/.gradle/gradle.properties
- name: Set version name from tag
run: echo "version=${{ github.event.release.tag_name }}" >> gradle.properties
- name: Build and publish
run: ./gradlew publish