-
Notifications
You must be signed in to change notification settings - Fork 3
57 lines (50 loc) · 1.25 KB
/
publish_snapshot.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
name: Publish Snapshot
on:
push:
paths:
- '**.kt'
- '**.kts'
- '**.yaml'
- '**.py'
- '**.properties'
branches:
- master
env:
GITHUB_TARGET_REPO: "https://maven.martmists.com/snapshots"
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }}
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }}
DEPLOY_TYPE: "snapshot"
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
jobs:
build-libraries:
strategy:
matrix:
python:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
runs-on: 'macos-latest'
steps:
# Check out project
- uses: actions/checkout@v2
# Set up java
- uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
cache: 'gradle'
- uses: actions/cache@v3
with:
path: ~/.konan
key: ${{ runner.os }}-konan
# Build all
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: -PpythonVersion=${{ matrix.python }} build
# Publish modules
- name: Publish to Maven
uses: gradle/gradle-build-action@v2
with:
arguments: -PpythonVersion=${{ matrix.python }} publish