Skip to content

Release

Release #47

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:
build-driver:
uses: ./.github/workflows/build-driver.yml
with:
metabase-version: ${{ github.event.inputs.metabase-version || 'v0.48.0' }}
branch: ${{ github.event.release.tag_name || github.event.inputs.tag_name }}
publish:
runs-on: ubuntu-latest
needs: [build-driver]
steps:
- name: Download jar file
uses: actions/download-artifact@v2
with:
name: ${{ needs.build-driver.outputs.jar-name }}
- 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: maven-settings-xml-action
uses: whelk-io/maven-settings-xml-action@v20
with:
servers: >
[
{
"id": "firebolt",
"username": "${{ secrets.REPSY_USERNAME }}" ,
"password": "${{ secrets.REPSY_PASSWORD }}"
}
]
- name: "Maven deploy"
run: |
mvn deploy:deploy-file -Durl=https://repo.repsy.io/mvn/firebolt/maven \
-DgroupId=metabase \
-DartifactId=firebolt-driver \
-Dversion=${{ needs.build-driver.outputs.version }} \
-Dpackaging=jar \
-Dfile=${{ needs.build-driver.outputs.jar-name }} \
-DrepositoryId=firebolt