kmath/.github/workflows/publish.yml

51 lines
1.6 KiB
YAML
Raw Permalink Normal View History

name: Gradle publish
2021-02-28 13:14:41 +03:00
on:
workflow_dispatch:
release:
2021-07-16 21:12:14 +03:00
types: [ created ]
2021-02-28 13:06:47 +03:00
jobs:
publish:
environment:
name: publish
2021-02-28 13:06:47 +03:00
strategy:
matrix:
2021-03-16 20:56:20 +03:00
os: [ macOS-latest, windows-latest ]
2021-02-28 13:06:47 +03:00
runs-on: ${{matrix.os}}
steps:
2022-03-31 23:06:07 +03:00
- uses: actions/checkout@v3.0.0
2023-03-19 19:16:46 +03:00
- uses: actions/setup-java@v3.10.0
2021-02-28 13:06:47 +03:00
with:
2022-03-31 22:23:34 +03:00
java-version: 11
distribution: liberica
2021-02-28 13:06:47 +03:00
- name: Cache konan
2022-03-31 23:06:07 +03:00
uses: actions/cache@v3.0.1
2021-02-28 13:06:47 +03:00
with:
path: ~/.konan
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Publish Windows Artifacts
if: matrix.os == 'windows-latest'
uses: gradle/gradle-build-action@v2.4.2
2022-04-01 10:02:03 +03:00
with:
arguments: |
2023-03-19 19:16:46 +03:00
publishAllPublicationsToSpaceRepository
2023-03-22 10:54:24 +03:00
-Ppublishing.targets=all
2022-04-01 10:02:03 +03:00
-Ppublishing.space.user=${{ secrets.SPACE_APP_ID }}
-Ppublishing.space.token=${{ secrets.SPACE_APP_SECRET }}
- name: Publish Mac Artifacts
if: matrix.os == 'macOS-latest'
uses: gradle/gradle-build-action@v2.4.2
2022-04-01 10:02:03 +03:00
with:
arguments: |
2023-03-19 19:41:31 +03:00
publishMacosX64PublicationToSpaceRepository
2023-03-22 18:04:16 +03:00
publishMacosArm64PublicationToSpaceRepository
2023-03-19 19:41:31 +03:00
publishIosX64PublicationToSpaceRepository
publishIosArm64PublicationToSpaceRepository
publishIosSimulatorArm64PublicationToSpaceRepository
2023-03-22 10:54:24 +03:00
-Ppublishing.targets=all
2022-04-01 10:02:03 +03:00
-Ppublishing.space.user=${{ secrets.SPACE_APP_ID }}
-Ppublishing.space.token=${{ secrets.SPACE_APP_SECRET }}