-
Notifications
You must be signed in to change notification settings - Fork 2
65 lines (56 loc) · 1.56 KB
/
cd.yml
File metadata and controls
65 lines (56 loc) · 1.56 KB
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
name: Mod CD
on:
push:
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Setup keystore
env:
RELEASE_KEYSTORE: ${{ secrets.RELEASE_KEYSTORE }}
RELEASE_KEYSTORE_PASSPHRASE: ${{ secrets.RELEASE_KEYSTORE_PASSPHRASE }}
run: ./.github/prepare_keystore.sh
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Build with Gradle
uses: gradle/actions/setup-gradle@v3
env:
ORG_GRADLE_PROJECT_keyStore: ./release.keystore
ORG_GRADLE_PROJECT_keyStoreAlias: ${{ secrets.KEYSTORE_ALIAS }}
ORG_GRADLE_PROJECT_keyStorePass: ${{ secrets.KEYSTORE_PASS }}
with:
arguments: build
- uses: actions/upload-artifact@v4
with:
name: artifacts
path: build/libs
release:
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/download-artifact@v4
with:
name: artifacts
path: ./libs
- name: Create Release
id: create_release
uses: ncipollo/[email protected]
with:
artifacts: "./libs/*.jar"
token: ${{ secrets.GITHUB_TOKEN }}
name: Release ${{ github.ref_name }}
generateReleaseNotes: true
draft: false
prerelease: false