Skip to content

Merge pull request #22 from MasterFlomaster1/dependabot/maven/org.jun… #17

Merge pull request #22 from MasterFlomaster1/dependabot/maven/org.jun…

Merge pull request #22 from MasterFlomaster1/dependabot/maven/org.jun… #17

Workflow file for this run

name: Create Release
on:
push:
tags:
- 'v*.*.*'
branches:
- "master"
jobs:
release:
if: github.event_name == 'push' && contains(github.ref, 'refs/heads/master') && startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Extract version
run: echo "VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: |
target/jfxcrypto-${{ env.VERSION }}.jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}