Skip to content

Merge pull request #274 from ZhiHanZ/v0.3.2 #13

Merge pull request #274 from ZhiHanZ/v0.3.2

Merge pull request #274 from ZhiHanZ/v0.3.2 #13

name: Release Jar to Github
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
build:
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
# Maven build
- name: Build with Maven
run: mvn clean install -DskipTests
# Maven pom version
- name: Set Release version env variable
run: |
echo "RELEASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
# Release jar
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "v${{ env.RELEASE_VERSION }}"
prerelease: false
title: "Release v${{ env.RELEASE_VERSION }}"
files: |
databend-jdbc/target/*.jar