-
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1 KB
/
robot.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
on:
push:
tags:
- 'v*'
branches:
- main
pull_request:
branches:
- main
name: Build robot
jobs:
build:
runs-on: ubuntu-latest
name: Build and possibly release
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Java
uses: actions/[email protected]
with:
java-version: 17
distribution: zulu
cache: 'gradle'
- name: Package
run: date +%y.%m.%d.${{github.run_number}} > version.txt && ./gradlew --no-daemon shadowJar
- uses: actions/upload-artifact@v3
with:
name: jar
path: build/libs/nfc4pc-*.jar
- name: Release
if: startsWith(github.ref, 'refs/tags/v')
id: create_release
uses: softprops/[email protected]
with:
files: |
build/libs/nfc4pc-*.jar
fail_on_unmatched_files: true
body: Release ${{ github.ref_name }}
prerelease: true # manually promoted