-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (50 loc) · 1.69 KB
/
build.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
name: Release
on:
release:
types: [released, edited]
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVENCENTRALUSERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVENCENTRALPASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNINGINMEMORYKEY }}
jobs:
build-multiplatform-project:
environment: release
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
gradle: [8.3]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '17'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- id: get_version
name: Get version
uses: jannemattila/get-version-from-tag@v3
- name: Display version
run: |
export PUBLISH_VERSION=$(echo "${{ steps.get_version.outputs.version }}")
echo $PUBLISH_VERSION
- name: Build and publish
shell: bash
env:
FLAVOR: 1.9.23
PUBLISH_VERSION: ${{ steps.get_version.outputs.version }}
run: |
gradle sample:check --refresh-dependencies
gradle ktorfit-koin:publishAllPublicationsToMavenCentralRepository
gradle lib:publishAllPublicationsToMavenCentralRepository
- name: Build and publish
shell: bash
env:
FLAVOR: 2.0-RC1
PUBLISH_VERSION: ${{ steps.get_version.outputs.version }}
run: |
gradle sample:check --refresh-dependencies
gradle ktorfit-koin:publishAllPublicationsToMavenCentralRepository
gradle lib:publishAllPublicationsToMavenCentralRepository