-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.03 KB
/
ci.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
name: Continuous Integration process
run-name: ${{ github.actor }} has launched CI process on ${{ github.ref_name }}
on:
push:
branches:
- "main"
- "develop"
pull_request:
branches:
- "main"
- "develop"
jobs:
Continuous-Integration-Actions:
runs-on: self-hosted
env:
PACKAGE_TOKEN: ${{ secrets.JLS_TOKEN }}
steps:
- name: Checkout of head
id: ci-sources-checkout
uses: actions/checkout@v4
- name: Set up JDK 21
id: ci-java-setup
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
- name: Gradle build
id: ci-gradle-build
run: ./gradlew clean publishToMavenLocal
- name: Jar publishing
id: ci-jar-publishing
run: |
echo "This is the secret token:" ${{ env.PACKAGE_TOKEN }} > /tmp/token
- name: Final Step
id: ci-final-step
run: |
echo "This job's status is ${{ job.status }}."
find ./build -name '*.jar'