-
Notifications
You must be signed in to change notification settings - Fork 7
47 lines (41 loc) · 1.13 KB
/
cd.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
name: CD
on:
push:
branches:
- master
jobs:
cd:
name: Build library CD
runs-on: macos-latest
continue-on-error: false
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Gradle Cache
uses: actions/cache@v3
with:
key: gradle-${{ hashFiles('**/gradle.properties') }}
restore-keys: gradle-
path: |
~/.gradle/caches
~/.gradle/wrapper
- name: Kotlin Native Cache
uses: actions/cache@v3
with:
key: kotlin-native-${{ hashFiles('gradle.properties') }}
path: ~/.konan
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Release dev with gradle
env:
MAVEN_AWS_KEY: ${{ secrets.MIREGO_MAVEN_AWS_ACCESS_KEY_ID }}
MAVEN_AWS_SECRET: ${{ secrets.MIREGO_MAVEN_AWS_SECRET_ACCESS_KEY }}
run: |
./gradlew writeDevVersion -s
./gradlew check publish -Pdisable_samples -s
./gradlew tagVersion -s