-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.01 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
# Copyright (c) 2024 tmpim All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
name: build
on:
workflow_dispatch:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup JDK 17
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 17
- name: Make Gradle wrapper executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Build and publish
uses: nick-fields/retry@v2
with:
command: ./gradlew --no-parallel publishKristpay
timeout_minutes: 69
max_attempts: 5
retry_on: error
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}