-
Notifications
You must be signed in to change notification settings - Fork 3
63 lines (54 loc) · 1.78 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
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"
run: 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: "Maven deploy"
env:
SIGN_KEY_ID: ${{ steps.import_gpg.outputs.keyid }}
MAVEN_REPO_USERNAME: ${{ secrets.MAVEN_REPO_USERNAME }}
MAVEN_REPO_PASSWORD: ${{ secrets.MAVEN_REPO_PASSWORD }}
run: |
DEBUG=1 lein deploy
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: ${{ needs.build-driver.outputs.jar-name }}
tags: true
draft: false
- name: Upload resulting jar file as artifact
uses: actions/upload-artifact@v4
with:
name: ${{ steps.package.outputs.jar-name }}
path: target/uberjar/${{ steps.package.outputs.jar-name }}