forked from svt/encore
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (32 loc) · 1.08 KB
/
publishjar.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
name: Create and publish Spring Boot jars and GraalVm native images
on:
push:
tags:
- 'v*'
jobs:
build-artifacts:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up GraalVm
uses: graalvm/setup-graalvm@v1
with:
java-version: '17'
distribution: 'graalvm-community'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build jars and native images with Gradle
run: ./gradlew build nativeCompile -x test
- name: Release Jars and native images
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
encore-web/build/libs/encore-web*boot.jar
encore-web/build/native/nativeCompile/encore-web
encore-worker/build/libs/encore-worker*boot.jar
encore-worker/build/native/nativeCompile/encore-worker