Skip to content

release

release #57

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Release
on:
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 16
uses: actions/setup-java@v3
with:
java-version: '16'
distribution: 'temurin'
cache: maven
# Must install chocolatey and other dependencies in
# the same shell as mvn... command (with JavaPackager plugin)
# since global PATH variables somehow don't get when running in another shell.
- name: Build with Maven/JavaPackager
shell: pwsh
run: |
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
choco install -y innosetup wixtoolset
refreshenv
mvn -B package --file pom.xml -DskipTests
- name: Show files.
run: |
echo Showing current directory:
ls
echo Showing ./target directory:
ls ./target
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: false
title: "Release"
files: |
./target/*.tar.gz
./target/*.zip
./target/*.jar
./target/*.exe