Skip to content

Commit

Permalink
feat: add ci to release jdbc jar
Browse files Browse the repository at this point in the history
  • Loading branch information
hantmac committed Jan 8, 2024
1 parent 4fccc9e commit a3d68eb
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 a3d68eb

Please sign in to comment.