-
Notifications
You must be signed in to change notification settings - Fork 3
64 lines (55 loc) · 1.76 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Release
on:
release:
types: [published]
workflow_dispatch:
inputs:
tag_name:
description: 'Tag name to publish'
required: true
metabase-version:
description: 'Metabase version'
required: false
type: string
default: 'v0.48.0'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.release.tag_name || github.event.inputs.tag_name || 'develop' }}
- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with:
lein: '2.9.10'
- name: "Install dependencies"
env:
METABASE_VERSION: ${{ github.event.inputs.metabase-version || 'v0.48.0' }}
run: |
lein get-metabase-core
lein deps
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
id: import_gpg
with:
gpg_private_key: ${{ secrets.GRADLE_SIGNING_KEY }}
passphrase: ${{ secrets.GRADLE_SIGNING_PASSWORD }}
- name: "Build uberjar"
id: build
run: |
DEBUG=1 lein uberjar
echo "version=$(lein project-version | tail -1)" >> "${GITHUB_OUTPUT}"
echo "jar-name=$(lein file-name | tail -1)" >> "${GITHUB_OUTPUT}"
- uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: target/default+uberjar/${{ steps.build.outputs.jar-name }}
tags: true
draft: false
- name: Upload resulting jar file as artifact
uses: actions/upload-artifact@v4
with:
name: ${{ steps.build.outputs.jar-name }}
path: target/default+uberjar/${{ steps.build.outputs.jar-name }}