-
-
Notifications
You must be signed in to change notification settings - Fork 170
73 lines (60 loc) · 2.07 KB
/
Copy pathpush-dev.yml
File metadata and controls
73 lines (60 loc) · 2.07 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
66
67
68
69
70
71
72
73
name: Devious Client - Dev (push)
on:
push:
branches:
- development
jobs:
build:
name: Build and bootstrap
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/cache@v2.1.3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Set up JDK 11
uses: actions/setup-java@v1.4.3
with:
java-version: 11
- name: Assembling
run: ./gradlew assemble --console=plain
- name: Building
run: ./gradlew build --stacktrace -x test -x checkstyleMain --console=plain
- name: Bootstrap
run: ./gradlew bootstrapSnapshot -x test -x checkstyleMain --console=plain
- name: Push to hosting
run: |
git clone https://github.com/jbx5/devious-hosting.git
cp -r ./runelite-client/build/bootstrap/. ./devious-hosting
cd devious-hosting
git config --global user.email "113217895+jbx5@users.noreply.github.com"
git config --global user.name "Github Actions"
git add -A
git commit -m 'Auto release - Client (Snapshot)'
git push https://jbx5:${{ secrets.REPO_PAT }}@github.com/jbx5/devious-hosting.git master
checkstyleMain:
name: Checkstyle main
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/cache@v2.1.3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Set up JDK 11
uses: actions/setup-java@v1.4.3
with:
java-version: 11
- name: Assembling
run: ./gradlew assemble --console=plain
- name: Checking code conventions
run: ./gradlew checkstyleMain --console=plain