-
Notifications
You must be signed in to change notification settings - Fork 37
47 lines (41 loc) · 1.2 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
# This is a basic workflow to help you get started with Actions
name: Release
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
tags:
- 'v*.*.*'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
gradle:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- os: macos-latest
OS_NAME: MacOS
- os: ubuntu-latest
OS_NAME: Linux
- os: windows-latest
OS_NAME: Windows
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 14
- name: Package
uses: eskatos/gradle-command-action@v1
with:
arguments: packageDistribution
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
desktop/build/releases/finisterra-client-${{ matrix.OS_NAME }}.zip
server/build/releases/finisterra-server-${{ matrix.OS_NAME }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}