Skip to content

BifroMQ-v2.1.3

BifroMQ-v2.1.3 #19

Workflow file for this run

name: Release assets
on:
release:
types: [ prereleased, published ]
jobs:
prepare:
runs-on: ubuntu-latest
outputs:
IS_VALID_TAG: ${{ steps.check.outputs.IS_VALID_TAG }}
steps:
- name: check tag version
id: check
run: |
REF=${{ github.ref }}
if [[ "$REF" =~ refs/tags/v[0-9]+.[0-9]+.[0-9]+ ]]; then
IS_VALID_TAG=true
else
echo "Expected refs of the form 'refs/tags/v-<major-version>.<minor-version>.<patch-version>' but got '$REF'"
IS_VALID_TAG=false
fi
echo "IS_VALID_TAG=$IS_VALID_TAG"
echo "IS_VALID_TAG=$IS_VALID_TAG" >> "$GITHUB_OUTPUT"
build-and-upload:
runs-on: ubuntu-latest
needs: prepare
if: needs.prepare.outputs.IS_VALID_TAG
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn clean package -DskipTests
- uses: AButler/[email protected]
with:
files: 'build/build-bifromq-starters/target/bifromq-*'
repo-token: ${{ secrets.GITHUB_TOKEN }}