generated from PurpurMC/Tentacles
-
-
Notifications
You must be signed in to change notification settings - Fork 12
34 lines (33 loc) · 930 Bytes
/
pr.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
name: PR
on:
workflow_dispatch:
pull_request:
branches:
- "master"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
distribution: temurin
java-version: 22
cache: 'gradle'
- name: Setup Node-14
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install dayjs
run: npm install dayjs
- name: Batch and Deploy
run: |
git config --global user.email "[email protected]" && git config --global user.name "Github Actions"
./gradlew applyPatches --no-daemon
./gradlew createCanvasServer --no-daemon
- name: Fallback
if: ${{ failure() }}
run: |
./gradlew clean cleanCache
./gradlew applyPatches --no-daemon
./gradlew createCanvasServer --no-daemon