kmath/.github/workflows/publish.yml

52 lines
1.5 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
- uses: actions/setup-java@v3.0.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-
2022-03-31 23:06:07 +03:00
- uses: gradle/wrapper-validation-action@v1.0.4
2021-02-28 13:06:47 +03:00
- name: Publish Windows Artifacts
if: matrix.os == 'windows-latest'
2022-04-01 10:02:03 +03:00
uses: gradle/gradle-build-action@v2.1.5
with:
arguments: |
releaseAll
-Ppublishing.enabled=true
2022-04-12 11:56:12 +03:00
-Ppublishing.sonatype=false
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'
2022-04-01 10:02:03 +03:00
uses: gradle/gradle-build-action@v2.1.5
with:
arguments: |
releaseMacosX64
releaseIosArm64
releaseIosX64
-Ppublishing.enabled=true
2022-04-12 11:56:12 +03:00
-Ppublishing.sonatype=false
2022-04-01 10:02:03 +03:00
-Ppublishing.space.user=${{ secrets.SPACE_APP_ID }}
-Ppublishing.space.token=${{ secrets.SPACE_APP_SECRET }}