-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (44 loc) · 1.36 KB
/
push-main.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
name: ART Java Main
on:
push:
branches:
- main
jobs:
gradle-build:
strategy:
matrix:
os: [ ubuntu-latest ]
jdk: [ 21 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: tarantool/setup-tarantool@v1
with:
tarantool-version: '2.11'
- name: Setup temporary directory on Unix based
run: echo "TMPDIR=${{ runner.temp }}" >> $GITHUB_ENV
- uses: actions/setup-java@v1
with:
java-version: ${{ matrix.jdk }}
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew clean build --max-workers 8 --parallel
gradle-publish:
strategy:
matrix:
os: [ ubuntu-latest ]
jdk: [ 21 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: ${{ matrix.jdk }}
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew clean publish --max-workers 8 --parallel -Ppublisher.username=${publisherUsername} -Ppublisher.password=${publisherPassword} -Pversion=main
env:
publisherUsername: ${{ secrets.PUBLISHER_USERNAME }}
publisherPassword: ${{ secrets.PUBLISHER_PASSWORD }}