mirror of
https://github.com/ColdeZhang/Dominion.git
synced 2025-02-04 22:49:41 +08:00
测试modrinth发布脚本
This commit is contained in:
parent
555bb68af3
commit
4effb8a829
23
.github/workflows/main.yml
vendored
23
.github/workflows/main.yml
vendored
@ -12,7 +12,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up JDK 21
|
||||
- name: "Set up JDK 21"
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: '21'
|
||||
@ -21,15 +21,32 @@ jobs:
|
||||
- name: "Build with Gradle"
|
||||
run: ./gradlew buildPlugin
|
||||
- name: "Copy jar to staging"
|
||||
run: mkdir staging && cp build/libs/*.jar staging/
|
||||
run: |
|
||||
mkdir staging && cp build/libs/*.jar staging/
|
||||
env:
|
||||
JAR_FILE: "staging/$(ls staging | grep .jar)"
|
||||
- name: "Build & test"
|
||||
run: |
|
||||
TAG=$(echo $GITHUB_REF | sed 's/refs\/tags\///')
|
||||
echo "done!"
|
||||
- uses: "marvinpinto/action-automatic-releases@latest"
|
||||
- name: "GitHub Release"
|
||||
uses: "marvinpinto/action-automatic-releases@latest"
|
||||
with:
|
||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
automatic_release_tag: "${{ steps.build.outputs.TAG }}"
|
||||
prerelease: false
|
||||
files: |
|
||||
staging/*.jar
|
||||
- name: "Upload to Modrinth"
|
||||
uses: RubixDev/modrinth-upload@v1
|
||||
with:
|
||||
token: ${{ secrets.MODRINTH_TOKEN }}
|
||||
file_path: ${{ env.JAR_FILE }}
|
||||
name: ${{ github.event.release.tag_name }}
|
||||
version: ${{ github.event.release.tag_name }}
|
||||
changelog: ${{ github.event.release.body }}
|
||||
game_versions: 1.20.1,1.20.2,1.20.3,1.20.4,1.20.5,1.20.6,1.21,1.21.1
|
||||
release_type: beta
|
||||
loaders: Bukkit,Folia,Paper,Purpur,Spigot
|
||||
featured: true
|
||||
project_id: vVZc7jAV
|
||||
|
@ -4,7 +4,7 @@ plugins {
|
||||
}
|
||||
|
||||
group = "cn.lunadeer"
|
||||
version = "2.6.2-beta"
|
||||
version = "2.6.3-beta"
|
||||
|
||||
java {
|
||||
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
|
||||
|
Loading…
Reference in New Issue
Block a user