-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (43 loc) · 1.66 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# 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