-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 1.12 KB
/
cicd.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
name: "CI & CD"
on:
push:
tags:
- '*'
jobs:
CI-CD:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
checks: write
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 20
- name: Start Supporting Services
run: ./scripts/setup.sh
- name: Build & Deploy
uses: gradle/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PACKAGE_STORE_USERNAME: ${{ secrets.PACKAGE_STORE_USERNAME }}
PACKAGE_STORE_TOKEN: ${{ secrets.PACKAGE_STORE_TOKEN }}
DB_URL: ${{ secrets.DB_URL }}
with:
gradle-version: 8.4
arguments: clean test build publish --info --stacktrace -PIS_SNAPSHOT_BUILD=false
- name: Upload Test Results
uses: dorny/[email protected]
if: success() || failure()
with:
name: Test Results
path: build/test-results/test/*.xml
reporter: java-junit