-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (82 loc) · 2.37 KB
/
development-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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Development Build
on:
push:
branches:
- develop
paths:
- src/**
- pom.xml
- simulator-example.properties
jobs:
verify:
name: Verify project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 21
uses: actions/setup-java@v2
with:
java-version: '21'
distribution: 'adopt'
cache: maven
- name: Verify with Maven
run: mvn --batch-mode --update-snapshots verify
properties:
needs: verify
name: Publish simulator properties
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Upload Properties
uses: svenstaro/upload-release-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: simulator-example.properties
asset_name: simulator.properties
prerelease: true
overwrite: true
tag: development
release_name: Automatic Development Build
body: This release is an automatic build from the develop branch.
publish:
needs: verify
name: Publish for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
artifact_name: RobbiSimulator.jar
asset_name: RobbiSimulator-Linux.jar
- os: windows-latest
artifact_name: RobbiSimulator.jar
asset_name: RobbiSimulator-Win.jar
- os: macos-latest
artifact_name: RobbiSimulator.jar
asset_name: RobbiSimulator-Mac.jar
steps:
- uses: actions/checkout@v2
- name: Set up JDK 21
uses: actions/setup-java@v2
with:
java-version: '21'
distribution: 'adopt'
cache: maven
- name: Generate Jar
run: |
mvn --batch-mode --update-snapshots clean install package
- name: Upload Application
uses: svenstaro/upload-release-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
prerelease: true
overwrite: true
tag: development
release_name: Automatic Development Build
body: This release is an automatic build from the develop branch.