-
Notifications
You must be signed in to change notification settings - Fork 26
52 lines (42 loc) · 949 Bytes
/
ci.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
#
# SSW CI
#
name: Java CI with Gradle
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Grant execute permission for gradlew
run: chmod +x gradlew
#
# Perform a Release Build
#
- name: Build with Gradle
run: ./gradlew releaseBuild
#
# Resolve version name for release archive
#
- name: Generate name for archive
run: echo "SSW_VERSION=$(ls ./build/release)-$(git rev-parse --short=10 HEAD)" >> $GITHUB_ENV
#
# Upload release distribution zipfile
#
- name: Upload Releases
uses: actions/upload-artifact@v2-preview
with:
path: ./build/release/
name: ${{ env.SSW_VERSION }}