-
Notifications
You must be signed in to change notification settings - Fork 6
66 lines (59 loc) · 2.49 KB
/
Copy pathrelease_r2dbc.yaml
File metadata and controls
66 lines (59 loc) · 2.49 KB
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
65
66
name: Release R2DBC
on:
workflow_dispatch
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
include:
- os: ubuntu-latest
# On ubuntu publish everything you can i.e. the linuxX64 and jvm binaries
# (Need to do >- or for some reason it preserves a newline after all the entries)
publish_command: >-
:controller-r2dbc:publishAllPublicationsToOss
:terpal-sql-r2dbc:publishAllPublicationsToOss
platform: linux
env:
SONATYPE_USERNAME: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPEUSERNAME }}
SONATYPE_PASSWORD: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPEPASSWORD }}
NEW_SIGNING_KEY_ID_BASE64: ${{ secrets.NEW_SIGNING_KEY_ID_BASE64 }}
NEW_SIGNING_KEY_ID_BASE64_PASS: ${{ secrets.NEW_SIGNING_KEY_ID_BASE64_PASS }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v3
- run: echo "*************** PublishCommand ${{ matrix.publish_command }}"
- name: 'Run Jdbc, Android, and Native-Linux Tests'
if: matrix.os == 'ubuntu-latest'
run: >-
docker compose build && docker compose run --rm --service-ports setup &&
./gradlew build ${{ matrix.publish_command }} -Pplatform=${{ matrix.platform }} -PisCI -no-daemon --stacktrace
- name: 'Run MacOS Tests'
if: matrix.os == 'macOS-latest'
run: ./gradlew :terpal-sql-native:build ${{ matrix.publish_command }} -Pplatform=${{ matrix.platform }} -PisCI -no-daemon --stacktrace
- name: 'Run windows tests'
if: matrix.os == 'windows-latest'
run: ./gradlew :terpal-sql-native:mingwX64Test ${{ matrix.publish_command }} -Pplatform=${{ matrix.platform }} -PisCI -no-daemon --stacktrace
release_repos:
needs: [ release ]
runs-on: ubuntu-latest
env:
SONATYPE_USERNAME: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPEUSERNAME }}
SONATYPE_PASSWORD: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPEPASSWORD }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v3
- run: ./gradlew publishSonatypeStaging