forked from metincansiper/factoid-to-biopax-server
-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (50 loc) · 1.44 KB
/
Build.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
name: Build
on:
schedule:
- cron: '0 8 * * *'
push:
branches:
- custom_intn
- master
pull_request:
branches:
- custom_intn
- master
jobs:
build:
runs-on: ubuntu-latest
env:
JDK_JAVA_OPTIONS: "--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED"
name: Build with Gradle
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: 20
distribution: 'temurin'
cache: gradle
- name: Build with Gradle
run: |
./gradlew build
find . -name '*.jar'
- name: Cleanup Gradle Cache
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
run: |
rm -f ~/.gradle/caches/modules-2/modules-2.lock
rm -f ~/.gradle/caches/modules-2/gc.properties
- name: Move Artifacts
run: |
pwd
find . -name 'factoid-converters*.jar' -exec bash -c 'mv $0 ./factoid-converters-latest.jar' {} \;
ls
- name: Release
uses: softprops/action-gh-release@v1
with:
name: 'latest'
tag_name: 'latest'
prerelease: true
files: factoid-converters-latest.jar