This commit is contained in:
parent
74fb76248e
commit
f7828281ad
3 changed files with 51 additions and 20 deletions
22
.forgejo/workflows/build.yaml
Normal file
22
.forgejo/workflows/build.yaml
Normal file
|
@ -0,0 +1,22 @@
|
|||
name: Build
|
||||
run-name: ${{ github.actor }} is building
|
||||
on: [ pull_request ]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
cache: 'gradle'
|
||||
- name: build
|
||||
run: gradle build
|
||||
- name: sonar send
|
||||
run: gradle sonar -Dsonar.token=${{ secrets.SONARQUBE_TOKEN }}
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: build
|
||||
path: build/libs/
|
29
.forgejo/workflows/publish.yaml
Normal file
29
.forgejo/workflows/publish.yaml
Normal file
|
@ -0,0 +1,29 @@
|
|||
name: Build
|
||||
run-name: ${{ github.actor }} is building
|
||||
on: [ push ]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
cache: 'gradle'
|
||||
- name: build
|
||||
run: gradle build
|
||||
|
||||
- name: sonar send
|
||||
run: gradle sonar -Dsonar.token=${{ secrets.SONARQUBE_TOKEN }}
|
||||
|
||||
- name: publish
|
||||
run: gradle publish
|
||||
env:
|
||||
ORG_GRADLE_PROJECT_repounurledmeUsername: ${{ secrets.USERNAME }}
|
||||
ORG_GRADLE_PROJECT_repounurledmePassword: ${{ secrets.PASSWORD }}
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: build
|
||||
path: build/libs/
|
|
@ -1,11 +1,8 @@
|
|||
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription
|
||||
|
||||
plugins {
|
||||
`java-library`
|
||||
`maven-publish`
|
||||
id("io.papermc.paperweight.userdev") version "1.7.2"
|
||||
id("org.sonarqube") version "5.1.0.4882"
|
||||
id("net.minecrell.plugin-yml.paper") version "0.6.0"
|
||||
}
|
||||
|
||||
group = "me.unurled"
|
||||
|
@ -75,20 +72,3 @@ publishing {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
paper {
|
||||
main = "me.unurled.sacredrealms.sr.SR"
|
||||
|
||||
hasOpenClassloader = false
|
||||
|
||||
foliaSupported = false
|
||||
|
||||
apiVersion = "1.21"
|
||||
|
||||
load = BukkitPluginDescription.PluginLoadOrder.STARTUP
|
||||
author = "unurled"
|
||||
|
||||
prefix = "SR-Core"
|
||||
|
||||
defaultPermission = BukkitPluginDescription.Permission.Default.OP
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue