Skip to content

Commit

Permalink
Merge pull request #128 from datafuselabs/feat/ci-release-jar
Browse files Browse the repository at this point in the history
feat: add ci to release jdbc jar
  • Loading branch information
hantmac authored Jan 9, 2024
2 parents 4fccc9e + a3d68eb commit 76c2999
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release_jar_to_github.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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 -B package --file pom.xml
# 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

0 comments on commit 76c2999

Please sign in to comment.