mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-18 00:20:44 +00:00
Add workflows
This commit is contained in:
36
plugins/kirabukkitgateway-paper/.github/workflows/build.yml
vendored
Normal file
36
plugins/kirabukkitgateway-paper/.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
name: "Build"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Setup Java
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
~/.gradle/wrapper
|
||||
'**/.gradle/caches'
|
||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-gradle-
|
||||
|
||||
- name: Build
|
||||
run: ./gradlew build
|
||||
39
plugins/kirabukkitgateway-paper/.github/workflows/publish.yml
vendored
Normal file
39
plugins/kirabukkitgateway-paper/.github/workflows/publish.yml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
name: Publish
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Setup Java
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
~/.gradle/wrapper
|
||||
'**/.gradle/caches'
|
||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-gradle-
|
||||
|
||||
- name: Publish
|
||||
run: ./gradlew publish
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
CIVMC_NEXUS_USER: ${{ secrets.CIVMC_NEXUS_USER }}
|
||||
CIVMC_NEXUS_PASSWORD: ${{ secrets.CIVMC_NEXUS_PASSWORD }}
|
||||
4
plugins/kirabukkitgateway-paper/.gitignore
vendored
4
plugins/kirabukkitgateway-paper/.gitignore
vendored
@@ -5,4 +5,6 @@
|
||||
dependency-reduced-pom.xml
|
||||
*.iml
|
||||
.gradle
|
||||
build
|
||||
build
|
||||
|
||||
.idea
|
||||
|
||||
@@ -9,7 +9,7 @@ plugins {
|
||||
}
|
||||
|
||||
group = "net.civmc"
|
||||
version = "1.5.0-SNAPSHOT"
|
||||
version = "2.0.0-SNAPSHOT"
|
||||
description = "KiraBukkitGateway"
|
||||
|
||||
repositories {
|
||||
@@ -23,8 +23,14 @@ repositories {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
mavenCentral()
|
||||
civRepo("CivModCore")
|
||||
|
||||
maven("https://repo.aikar.co/content/groups/aikar/")
|
||||
maven("https://repo.civmc.net/repository/maven-public/")
|
||||
|
||||
maven("https://jitpack.io")
|
||||
|
||||
civRepo("NameLayer")
|
||||
civRepo("CivChat2")
|
||||
civRepo("JukeAlert")
|
||||
@@ -36,7 +42,7 @@ dependencies {
|
||||
implementation("net.civmc:civmodcore:2.0.0-SNAPSHOT:dev-all")
|
||||
implementation("net.civmc:namelayer-spigot:3.0.0-SNAPSHOT:dev")
|
||||
implementation("net.civmc:civchat2:2.0.0-SNAPSHOT:dev")
|
||||
implementation("net.civmc:jukealert:3.0.0-SNAPSHOT:dev")
|
||||
implementation("net.cimc.jukealert:paper:3.0.0-SNAPSHOT:dev")
|
||||
implementation("net.luckperms:api:5.0")
|
||||
}
|
||||
|
||||
|
||||
0
plugins/kirabukkitgateway-paper/gradlew
vendored
Normal file → Executable file
0
plugins/kirabukkitgateway-paper/gradlew
vendored
Normal file → Executable file
Reference in New Issue
Block a user