generated from Aliucord/plugins-template
-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (42 loc) · 1.18 KB
/
build.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
name: Build
on: [ "push", "pull_request" ]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Checkout
uses: actions/checkout@v2
- name: Setup JDK 11
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 11
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Build Plugins
run: |
chmod +x gradlew
./gradlew make generateUpdaterJson
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
path: |
build/*.zip
build/updater.json
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
draft: false
body_path: CHANGELOG.md
files: |
build/*.zip
build/updater.json