Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sofianedjerbi committed Feb 10, 2023
0 parents commit 31fdec1
Show file tree
Hide file tree
Showing 15 changed files with 1,454 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
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
44 changes: 44 additions & 0 deletions .github/workflows/upstream.yml
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: ''
56 changes: 56 additions & 0 deletions .gitignore
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
Loading

0 comments on commit 31fdec1

Please sign in to comment.