-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (47 loc) · 1.62 KB
/
Copy pathdeployRelease.yml
File metadata and controls
50 lines (47 loc) · 1.62 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
name: Build & upload the debug package
# Trigger on every tag creation
on:
push:
branches:
- 'develop'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Cache Gradle
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Cache Konan
uses: actions/cache@v3
with:
path: |
~/.konan/caches
~/.konan/dependencies
~/.konan/kotlin-native-prebuilt-macos-*
key: ${{ runner.os }}-konan-${{ hashFiles('**/Dependencies.kt') }}
restore-keys: |
${{ runner.os }}-konan-
- name: Update local properties
env:
PUBLISH_REPO_USER: ${{ secrets.PUBLISH_REPO_USER }}
PUBLISH_REPO_TOKEN: ${{ secrets.PUBLISH_REPO_TOKEN }}
PUBLISH_VERSION: 3.0.${{ github.run_number }}
run: echo PUBLISH_REPO_USER=$PUBLISH_REPO_USER$'\n'
PUBLISH_VERSION=$PUBLISH_VERSION$'\n'
PUBLISH_REPO_TOKEN=$PUBLISH_REPO_TOKEN > ./local.properties
- name: Print local.properties content
run: cat ./local.properties
- name: Publish to GitHub Packages
run: ./gradlew :coreApp:publishAllPublicationsToGithubRepository