Skip to content

Create Release on github #15

Create Release on github

Create Release on github #15

Workflow file for this run

name: Create Release on github
on:
workflow_dispatch:
inputs:
version:
description: 'Version number of the release (Format 0.0.0)'
required: true
type: string
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- uses: actions/checkout@v4
- id: compile
name: Compile
run: |
mvn install \
--no-transfer-progress \
--batch-mode \
-DskipTests
- id: build-artifact
name: Build release artefacts
run: |
mvn \
--no-transfer-progress \
--batch-mode \
-DskipTests \
-Possrh \
clean verify
- name: Create Release ${{ inputs.version }}
uses: ncipollo/release-action@v1
with:
# name: v${{ steps.get_version.outputs.VERSION }}
name: JMediator ${{ inputs.version }}
# tag: ${{ github.head_ref }}
tag: ${{ inputs.version }}
commit: "main"
prerelease: false
# makeLatest: true
# bodyFile: "distribution/release-notes/${{ steps.get_version.outputs.VERSION }}.md"
# artifacts: "target/jmediator-${{ steps.get_version.outputs.VERSION }}.zip,distribution/target/jmediator-${{ steps.get_version.outputs.VERSION }}.zip.asc"
artifacts: "target/jmediator-${{ inputs.version }}.jar,target/jmediator-${{ inputs.version }}.zip.asc"
token: ${{ secrets.GITHUB_TOKEN }}