-
Notifications
You must be signed in to change notification settings - Fork 9
48 lines (38 loc) · 1.15 KB
/
ci.yml
File metadata and controls
48 lines (38 loc) · 1.15 KB
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
name: CI
on: push
permissions:
contents: write
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout latest code
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 11
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Build
run: ./gradlew build --stacktrace --scan
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: jars
path: |
juliet-*/build/libs/*.jar
!**/*-sources.jar
!**/*-javadoc.jar
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: juliet-*/build/libs/*.jar
- name: Trigger JitPack build on release tag
if: startsWith(github.ref, 'refs/tags/')
run:
VERSION="${GITHUB_REF/refs\/tags\/v/}"
JITPACK_URL="https://jitpack.io/com/github/${{ github.repository }}/${VERSION}/maven-metadata.xml"
curl -s -m 30 "${JITPACK_URL}" || true