forked from jbx5/devious-client
-
Notifications
You must be signed in to change notification settings - Fork 13
97 lines (82 loc) · 2.86 KB
/
push-dev.yml
File metadata and controls
97 lines (82 loc) · 2.86 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: Devious Client - Dev (push)
on:
push:
branches:
- development
jobs:
build:
name: Build and bootstrap
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
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/melxin/devious-hosting.git
cp -r ./runelite-client/build/bootstrap/. ./devious-hosting
cd devious-hosting
git config --global user.email "melxin@tutamail.com"
git config --global user.name "Github Actions"
git add -A
git commit -m 'Auto release - Client (Snapshot)'
git push https://melxin:${{ secrets.REPO_PAT }}@github.com/melxin/devious-hosting.git master
checkstyleMain:
name: Checkstyle main
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
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
deploy:
name: Publish Maven package
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
if: ${{ false }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Publish to Devious Client Maven Repo
uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee
with:
arguments: runelite-client:publish runelite-api:publish http-api:publish runescape-api:publish cache:publish injection-annotations:publish deobfuscator:publish -x test
env:
REPO_URL: ${{ secrets.REPO_SNAPSHOTS_URL }}
REPO_USERNAME: ${{ secrets.REPO_USERNAME }}
REPO_PASSWORD: ${{ secrets.REPO_PASSWORD }}