-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (39 loc) · 1.28 KB
/
build-on-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
on:
push:
tags:
- "v*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: checkout driver
uses: actions/checkout@v4
path: ./driver
- name: checkout metabase
uses: actions/checkout@v4
repository: https://github.com/metabase/metabase.git
path: ./metabase
- name: install java
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '21'
- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with:
cli: 'latest'
- name: Build project
run: |
export DRIVER_PATH=$GITHUB_WORKSPACE/driver
cd $GITHUB_WORKSPACE/metabase
clojure \
-Sdeps "{:aliases {:greptimedb {:extra-deps {com.metabase/greptimedb-driver {:local/root \"$DRIVER_PATH\"}}}}}" \
-X:build:greptimedb \
build-drivers.build-driver/build-driver! \
"{:driver :greptimedb, :project-dir \"$DRIVER_PATH\", :target-dir \"$DRIVER_PATH/target\"}"
- name: Release with Notes
uses: softprops/action-gh-release@v2
with:
files: ${{ env:GITHUB_WORKSPACE }}/driver/target/greptimedb.metabase-driver.jar
generate_release_notes: true
prerelease: false