-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from 17TheWord/dev
Dev
- Loading branch information
Showing
6 changed files
with
102 additions
and
5 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 |
---|---|---|
|
@@ -7,7 +7,7 @@ body: | |
- type: markdown | ||
attributes: | ||
value: | | ||
##请补全标题并填写下方内容 | ||
## 请补全标题并填写下方内容 | ||
- type: input | ||
id: run-env | ||
|
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,43 @@ | ||
name: 新增版本支持 | ||
description: 希望支持某个版本 | ||
title: "[Version Support]添加对 XXX 服务端,XXX 版本的支持" | ||
assignees: 17TheWord | ||
labels: [ "version support" ] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
## 请补全标题 | ||
- type: input | ||
id: server-type | ||
attributes: | ||
label: 服务端类型 | ||
description: | | ||
请输入服务端类型,如: | ||
- Spigot | ||
- Forge | ||
- Fabric | ||
- Velocity | ||
placeholder: Spigot | ||
|
||
- type: input | ||
id: server-version | ||
attributes: | ||
label: 服务端版本 | ||
description: | | ||
请输入服务端版本,如: | ||
- 1.20.1 | ||
- 1.20.5 | ||
- type: textarea | ||
id: other-description | ||
attributes: | ||
label: 其他补充 | ||
render: plain text | ||
description: | | ||
如果有其他补充,请填写在这里。 | ||
例如: | ||
- 是否需要修改配置文件? | ||
- 是否有服务端官方文档链接? | ||
- ... |
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 |
---|---|---|
|
@@ -58,11 +58,45 @@ jobs: | |
./gradlew clean build | ||
cd ../.. | ||
- name: Set Version Type | ||
id: set-version-type | ||
shell: pwsh | ||
run: | | ||
if ($env:GITHUB_REF -eq 'refs/heads/main') { | ||
echo "VERSION_TYPE=release" | Out-File -Append -Encoding utf8 -FilePath $env:GITHUB_ENV | ||
} else { | ||
echo "VERSION_TYPE=beta" | Out-File -Append -Encoding utf8 -FilePath $env:GITHUB_ENV | ||
} | ||
- name: Set Game Version | ||
id: set-game-version | ||
shell: pwsh | ||
run: | | ||
if ("${{ matrix.config.mc-loader }}" -eq 'velocity') { | ||
echo "game_version=1.20.1" | Out-File -Append -Encoding utf8 -FilePath $env:GITHUB_ENV | ||
} else { | ||
echo "game_version=${{ matrix.config.mc-version }}" | Out-File -Append -Encoding utf8 -FilePath $env:GITHUB_ENV | ||
} | ||
- uses: Kir-Antipov/[email protected] | ||
with: | ||
modrinth-id: rVJvtYoX | ||
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | ||
curseforge-id: 1084495 | ||
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} | ||
|
||
name: QueQiao-${{ matrix.config.mc-loader }}+${{ matrix.config.mc-version }}-${{ env.MOD_VERSION }} | ||
version: ${{ env.MOD_VERSION }} | ||
version-type: ${{ env.VERSION_TYPE }} | ||
loaders: ${{ matrix.config.mc-loader }} | ||
game-versions: ${{ env.game_version }} | ||
files: QueQiao-jar/${{ env.MOD_VERSION }}/QueQiao-${{ matrix.config.mc-loader }}+${{ matrix.config.mc-version }}-${{ env.MOD_VERSION }}.jar | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: QueQiao-${{ matrix.config.mc-loader }}+${{ matrix.config.mc-version }}-${{ env.MOD_VERSION }}.jar | ||
path: QueQiao-jar/${{ env.MOD_VERSION }}/QueQiao-${{ matrix.config.mc-loader }}+${{ matrix.config.mc-version }}-${{ env.MOD_VERSION }}.jar | ||
|
||
- name: Upload to Release | ||
if: ${{ github.event_name == 'push' }} | ||
run: gh release upload v${{ env.MOD_VERSION }} QueQiao-jar/${{ env.MOD_VERSION }}/QueQiao-${{ matrix.config.mc-loader }}+${{ matrix.config.mc-version }}-${{ env.MOD_VERSION }}.jar | ||
# - name: Upload to Release | ||
# if: ${{ github.event_name == 'push' }} | ||
# run: gh release upload v${{ env.MOD_VERSION }} QueQiao-jar/${{ env.MOD_VERSION }}/QueQiao-${{ matrix.config.mc-loader }}+${{ matrix.config.mc-version }}-${{ env.MOD_VERSION }}.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
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
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