Skip to content

chore(release): bump version to 0.2.1 #12

chore(release): bump version to 0.2.1

chore(release): bump version to 0.2.1 #12

Workflow file for this run

name: Release
on:
push:
tags:
- "*"
workflow_dispatch:
inputs:
tag:
description: "Release tag to publish (for example: 0.1.5)"
required: true
type: string
permissions:
contents: write
packages: write
actions: read
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
release:
runs-on: ubuntu-latest
timeout-minutes: 120
env:
DOCKER_HOST: unix:///var/run/docker.sock
TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE: /var/run/docker.sock
TESTCONTAINERS_RYUK_DISABLED: false
steps:
- name: Checkout
uses: actions/checkout@v5
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.tag || github.ref }}
fetch-depth: 0
- name: Resolve release context
id: context
run: |
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
if ! git rev-parse "refs/tags/${{ inputs.tag }}" >/dev/null 2>&1; then
echo "::error::GATE_TAG_NOT_FOUND: tag '${{ inputs.tag }}' not found."
exit 17
fi
echo "tag_name=${{ inputs.tag }}" >> "${GITHUB_OUTPUT}"
echo "target_sha=$(git rev-list -n 1 "refs/tags/${{ inputs.tag }}")" >> "${GITHUB_OUTPUT}"
else
echo "tag_name=${{ github.ref_name }}" >> "${GITHUB_OUTPUT}"
echo "target_sha=$(git rev-list -n 1 "${GITHUB_REF}")" >> "${GITHUB_OUTPUT}"
fi
- name: Set up JDK 11
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: "11"
cache: maven
server-id: github
server-username: GITHUB_ACTOR
server-password: GITHUB_TOKEN
- name: Build and deploy Maven packages
run: mvn -B clean deploy -Dmaven.test.skip=true -pl flexdblink,flexdblink-maven-plugin
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create GitHub Release and upload assets
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.context.outputs.tag_name }}
name: ${{ steps.context.outputs.tag_name }}
generate_release_notes: true
files: |
flexdblink/target/FlexDBLink.jar
flexdblink/target/FlexDBLink-exec.jar
flexdblink/target/FlexDBLink-all.jar
flexdblink/target/FlexDBLink-*-all.jar
flexdblink/target/flexdblink-*-all.jar
flexdblink/target/FlexDBLink-sources.jar
flexdblink/target/FlexDBLink-distribution.zip