-
Notifications
You must be signed in to change notification settings - Fork 7
86 lines (85 loc) · 3.52 KB
/
develop.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Test & Deploy | develop
on:
push:
branches:
- "develop"
jobs:
check_deploy_macos:
runs-on: macos-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- uses: actions/cache@v1
with:
path: ~/.gradle
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- uses: actions/cache@v1
with:
path: ~/.konan
key: ${{ runner.os }}-konan-${{ hashFiles('**/*.konan*') }}
restore-keys: |
${{ runner.os }}-konan-
- run: 'echo "$PGP_KEY_PRIVATE" | base64 --decode > private.key'
shell: bash
env:
PGP_KEY_PRIVATE: ${{secrets.S_PGP_KEY_PRIVATE}}
- run: './gradlew --no-daemon publishDevelop -PdevBuildNumber=${{ github.run_number }} -Psigning.keyId=${{ secrets.S_PGP_KEY_PUBID }} -Psigning.password="${{ secrets.S_PGP_KEY_PASSWORD }}" -PgithubAccessToken="${{ secrets.S_GITHUB_RELEASE_TOKEN }}" -Psigning.secretKeyRingFile=private.key -Pmultigradle.publishHostExclusivesOnly=true'
check_deploy_windows:
runs-on: windows-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- uses: actions/cache@v1
with:
path: ~/.gradle
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- uses: actions/cache@v1
with:
path: ~/.konan
key: ${{ runner.os }}-konan-${{ hashFiles('**/*.konan*') }}
restore-keys: |
${{ runner.os }}-konan-
- run: 'echo "$PGP_KEY_PRIVATE" | base64 --decode > private.key'
shell: bash
env:
PGP_KEY_PRIVATE: ${{secrets.S_PGP_KEY_PRIVATE}}
- run: 'CALL gradlew.bat --no-daemon publishDevelop -PdevBuildNumber=${{ github.run_number }} -Psigning.keyId=${{ secrets.S_PGP_KEY_PUBID }} -Psigning.password="${{ secrets.S_PGP_KEY_PASSWORD }}" -PgithubAccessToken="${{ secrets.S_GITHUB_RELEASE_TOKEN }}" -Psigning.secretKeyRingFile=private.key -Pmultigradle.publishHostExclusivesOnly=true'
shell: cmd
check_deploy_linux:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- uses: actions/cache@v1
with:
path: ~/.gradle
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- uses: actions/cache@v1
with:
path: ~/.konan
key: ${{ runner.os }}-konan-${{ hashFiles('**/*.konan*') }}
restore-keys: |
${{ runner.os }}-konan-
- run: 'echo "$PGP_KEY_PRIVATE" | base64 --decode > private.key'
shell: bash
env:
PGP_KEY_PRIVATE: ${{secrets.S_PGP_KEY_PRIVATE}}
- run: './gradlew --no-daemon publishDevelop -PdevBuildNumber=${{ github.run_number }} -Psigning.keyId=${{ secrets.S_PGP_KEY_PUBID }} -PgithubAccessToken="${{ secrets.S_GITHUB_RELEASE_TOKEN }}" -Psigning.password="${{ secrets.S_PGP_KEY_PASSWORD }}" -Psigning.secretKeyRingFile=private.key'