-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1.26 KB
/
gradle.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
name: Default build pipeline
on:
push:
branches: [ "main", "master" ]
workflow_dispatch:
permissions:
packages: write
contents: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Fetch Tags
run: git fetch --unshallow --tags
- name: Set up JDK 21
uses: graalvm/setup-graalvm@v1
with:
java-version: '21'
distribution: 'graalvm'
- name: Build with Gradle
uses: gradle/gradle-build-action@87a9a15658c426a54dd469d4fc7dc1a73ca9d4a6 # v2.10.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
arguments: build sonar -Preckon.stage=final -Preckon.scope=patch reckonTagCreate
- name: Push git tag
uses: gradle/gradle-build-action@87a9a15658c426a54dd469d4fc7dc1a73ca9d4a6 # v2.10.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
arguments: reckonTagPush
- name: Deploy artifacts to GitHub Packages
uses: gradle/gradle-build-action@87a9a15658c426a54dd469d4fc7dc1a73ca9d4a6 # v2.10.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
arguments: publish