Skip to content

Releases

Releases #5

Workflow file for this run

name: Releases
on:
workflow_dispatch:
inputs:
checkout-ref:
description: "The branch, tag or SHA to checkout. See actions/checkout 'ref'."
required: false
type: string
release:
types: [ published ]
concurrency:
group: "Releases: ${{ github.workflow }} @ ${{ inputs.checkout-ref }} ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
cancel-in-progress: false
permissions:
contents: write
jobs:
# tests:
# uses: ./.github/workflows/run_tests.yml
# permissions:
# checks: write
# contents: read
# with:
# checkout-ref: ${{ inputs.checkout-ref }}
build-datalyzer-zip:
# needs: tests
uses: ./.github/workflows/run_gradle_task.yml
permissions:
checks: write
contents: read
with:
runs-on: ubuntu-latest
gradle-task: distZip
checkout-ref: ${{ inputs.checkout-ref }}
publish-github-release:
needs: build-datalyzer-zip
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v4
with:
ref: ${{ inputs.checkout-ref || github.ref }}
- name: Download datalyzer.zip
uses: actions/download-artifact@v4
with:
name: "datalyzer.zip"
- name: Upload datalyzer.zip
shell: bash
run: |
gh release upload ${{ github.event.release.tag_name || inputs.checkout-ref }} datalyzer.zip
env:
GITHUB_TOKEN: ${{ github.TOKEN }}