Skip to content

Release

Release #91

Workflow file for this run

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/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/uberjar/${{ steps.build.outputs.jar-name }}