-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 31fdec1
Showing
15 changed files
with
1,454 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Generate Jars | ||
on: [ push, pull_request ] | ||
jobs: | ||
paperclip: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Git Repository | ||
uses: actions/checkout@v2 | ||
- name: Set up JDK | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '17' | ||
cache: 'gradle' | ||
distribution: 'temurin' | ||
- name: Configure Git User Details | ||
run: git config --global user.email "[email protected]" && git config --global user.name "Github Actions" | ||
- name: Apply Patches | ||
run: ./gradlew applyPatches --stacktrace | ||
- name: Build Paperclip jar | ||
run: ./gradlew createReobfPaperclipJar --stacktrace | ||
- name: Upload Paperclip jar | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: kaiiju.jar | ||
path: build/libs/kaiiju-paperclip-*-reobf.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Update Upstream | ||
|
||
on: | ||
schedule: | ||
- cron: '0 15 * * *' # Once a day at 5pm GMT+2 | ||
workflow_dispatch: # on button click | ||
|
||
jobs: | ||
upstream: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Git Repository | ||
uses: actions/checkout@v2 | ||
- name: Set up JDK | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '17' | ||
cache: 'gradle' | ||
distribution: 'temurin' | ||
- name: Configure Git User Details | ||
run: git config --global user.email "[email protected]" && git config --global user.name "Github Actions" | ||
- name: Update Upstream Commit Hash | ||
run: ./gradlew purpurRefLatest --stacktrace | ||
- name: Apply Patches | ||
run: ./gradlew applyPatches --stacktrace | ||
- name: Build Paperclip jar | ||
run: ./gradlew jar createReobfPaperclipJar --stacktrace | ||
- name: Rebuild Patches | ||
run: ./gradlew rebuildPatches --stacktrace | ||
- name: Upload Paperclip jar | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: kaiiju.jar | ||
path: build/libs/kaiiju-paperclip-*-reobf.jar | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
commit-message: Update Upstream | ||
branch: update-upstream | ||
delete-branch: true | ||
title: 'Update Upstream' | ||
body: '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
.gradle/ | ||
build/ | ||
|
||
# Eclipse stuff | ||
.classpath | ||
.project | ||
.settings/ | ||
|
||
# VSCode stuff | ||
.vscode/ | ||
.vs/ | ||
|
||
# netbeans | ||
nbproject/ | ||
nbactions.xml | ||
|
||
# we use maven! | ||
build.xml | ||
|
||
# maven | ||
target/ | ||
dependency-reduced-pom.xml | ||
|
||
# vim | ||
.*.sw[a-p] | ||
|
||
# various other potential build files | ||
build/ | ||
bin/ | ||
dist/ | ||
manifest.mf | ||
|
||
# Mac filesystem dust | ||
.DS_Store/ | ||
.DS_Store | ||
|
||
# intellij | ||
*.iml | ||
*.ipr | ||
*.iws | ||
.idea/ | ||
out/ | ||
|
||
# Linux temp files | ||
*~ | ||
|
||
# other stuff | ||
run/ | ||
|
||
kaiiju-server | ||
kaiiju-api | ||
|
||
*.sh | ||
kaiiju.jar | ||
|
||
!gradle/wrapper/gradle-wrapper.jar |
Oops, something went wrong.