Skip to content

Release

Release #63

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:

Check failure on line 18 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 18, Col: 3): The workflow must contain at least one job with no dependencies.
runs-on: ubuntu-latest
needs: [build-driver]
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: "Download metabase"
run: wget https://downloads.metabase.com/${{ github.event.inputs.metabase-version }}/metabase.jar
- name: "Maven install"
run: |
mkdir repo
mvn deploy:deploy-file -Durl=file:repo -DgroupId=com.firebolt -DartifactId=metabase-core -Dversion=1.40 -Dpackaging=jar -Dfile=metabase.jar
- 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: |
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 }}