Skip to content

Workflow fix

Workflow fix #3

Workflow file for this run

name: Build and publish the Java SDK
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*' # v0.0.1 - this syntax of tags is supported
jobs:
build-and-publish-java-sdk:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Setup JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build
- name: Publish to Github packages
uses: gradle/gradle-build-action@v2
with:
arguments: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION_TAG: ${{ github.ref_name }}