Firebolt 2.0 #95
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |