-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (59 loc) · 2.1 KB
/
master.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
name: Test & Deploy | master
on:
push:
branches:
- "master"
jobs:
check_macos:
runs-on: macos-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- uses: actions/cache@v3
with:
path: ~/.gradle
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- run: ./gradlew --no-daemon check
check_windows:
runs-on: windows-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- uses: actions/cache@v3
with:
path: ~/.gradle
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- run: CALL gradlew.bat --no-daemon check
shell: cmd
check_deploy_linux:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- uses: actions/cache@v3
with:
path: ~/.gradle
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- run: 'echo "$PGP_KEY_PRIVATE" | base64 --decode > "$(pwd)/private.key"'
shell: bash
env:
PGP_KEY_PRIVATE: ${{secrets.PGP_KEY_PRIVATE}}
- run: './gradlew --no-daemon publishRelease -PgithubAccessToken=${{ secrets.GIT_HUB_RELEASE_TOKEN }} -Pgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }} -Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }} -Psigning.keyId=${{ secrets.PGP_KEY_PUBID }} -Psigning.password="${{ secrets.PGP_KEY_PASSWORD }}" -Psigning.secretKeyRingFile="$(pwd)/private.key"'