-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (55 loc) · 1.81 KB
/
build.yaml
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
51
52
53
54
55
56
57
58
59
60
61
name: build
on:
workflow_dispatch:
push:
branches:
- master
pull_request:
branches:
- master
defaults:
run:
shell: bash
permissions:
contents: read
packages: write
pull-requests: write
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
fetch-depth: '0'
- name: Set up JDK
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0
with:
java-version: '17'
distribution: 'liberica'
architecture: 'x64'
- uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4 #v1.1.0
- name: Set up Gradle
uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a # v2.9.0
with:
generate-job-summary: true
dependency-graph: generate-and-submit
- run: 'echo "PROJECT_VERSION=${{ github.sha }}" >> "$GITHUB_ENV"'
- run: 'echo "Determined version: $PROJECT_VERSION"'
- name: Build
env:
ORG_GRADLE_PROJECT_projectVersion: ${{ env.PROJECT_VERSION }}
QUARKUS_PACKAGE_TYPE: uber-jar
run: ./gradlew build
- name: Upload jar
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: jar
path: build/quarkus-build/gen/debezium-offsetfile-conv-${{ env.PROJECT_VERSION }}-runner.jar
# - name: Publish
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# ORG_GRADLE_PROJECT_projectVersion: ${{ env.PROJECT_VERSION }}
# ORG_GRADLE_PROJECT_signingKey: ${{ secrets.PGP_SECRET }}
# ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.PGP_PASSPHRASE }}
# run: ./gradlew publish