-
Notifications
You must be signed in to change notification settings - Fork 5
64 lines (62 loc) · 1.75 KB
/
snapshot_release.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Publish snapshot
on:
push:
branches:
- main
paths:
- 'build.gradle.kts'
- 'gradle.properties'
- 'json-schema-validator/**'
- 'gradle/**'
- 'generator/**'
- '.github/workflows/snapshot_release.yml'
jobs:
build-and-test:
uses: ./.github/workflows/build-and-test.yml
with:
upload-code-coverage: true
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
publish:
needs:
- build-and-test
runs-on: macos-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version-file: .java-version
- uses: actions/setup-python@v5
with:
python-version-file: .python-version
- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v4
- name: Cache konan
uses: actions/cache@v4
with:
path: ~/.konan
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: wrapper
- name: Setup Gradle
run: >
./gradlew
--no-daemon
--info
:json-schema-validator:assemble
publish
-x :benchmark:benchmark
env:
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_SECRET_KEY: ${{ secrets.SIGNING_SECRET_KEY }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}