-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.37 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
name: release-test
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
# - push
jobs:
build:
strategy:
matrix:
java: [ 16 ]
os: [ ubuntu-latest, windows-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: checkout repository
uses: actions/checkout@v2
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: setup jdk ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: make gradle wrapper executable
if: ${{ runner.os != 'Windows' }}
run: chmod a+x ./gradlew
- name: jpackage image
run: ./gradlew jpackageImage
- name: list image contents
run: ls -la main/build/jpackage
- name: compress jpackage image *nix
if: ${{ runner.os != 'Windows' }}
working-directory: main/build/jpackage
run: tar -czf NBTCoder.tgz NBTCoder/
- name: compress jpackage image windows
if: ${{ runner.os == 'Windows' }}
uses: papeloto/action-zip@v1
with:
files: main/build/jpackage/NBTCoder/
dest: main/build/jpackage/NBTCoder.zip
- name: capture release test artifacts
uses: actions/upload-artifact@v2
with:
name: Release-Build-Artifact
path: main/build/jpackage/NBTCoder.*