-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (51 loc) · 1.69 KB
/
publish.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: Gradle publish
on:
workflow_dispatch:
release:
types: [ created ]
jobs:
publish:
strategy:
matrix:
os: [ ubuntu-20.04, windows-2019 ]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@3
with:
java-version: 11
distribution: liberica
- if: matrix.os == 'windows-2019'
uses: msys2/setup-msys2@v2
with:
release: false
path-type: inherit
- if: matrix.os == 'windows-2019'
shell: msys2 {0}
run: pacman --noconfirm -S mingw-w64-x86_64-gsl
- uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
restore-keys: |
${{ runner.os }}-gradle-
- uses: actions/cache@v3
with:
path: ~/.konan
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
restore-keys: |
${{ runner.os }}-gradle-
- if: matrix.os == 'ubuntu-20.04'
uses: gradle/[email protected]
with:
arguments: >
releaseAll --build-cache --no-daemon -Ppublishing.enabled=true
-Ppublishing.space.user=${{ secrets.PUBLISHING_SPACE_USER }}
-Ppublishing.space.token=${{ secrets.PUBLISHING_SPACE_TOKEN }}
- if: matrix.os == 'windows-2019'
uses: gradle/[email protected]
with:
arguments: >
releaseMingwX64 --build-cache --no-daemon -Ppublishing.enabled=true
-Ppublishing.space.user=${{ secrets.PUBLISHING_SPACE_USER }}
-Ppublishing.space.token=${{ secrets.PUBLISHING_SPACE_TOKEN }}