Skip to content

Commit

Permalink
ci: Update build Action file
Browse files Browse the repository at this point in the history
  • Loading branch information
Suisuroru committed Jan 20, 2025
1 parent 8a93796 commit 869e290
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/auto_build_jar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ jobs:
body: |
此预发布版本由Github Action自动构建。
请注意,此版本为测试版,并不代表最终版本。
最后一次提交信息:
${{ env.commit_msg }}
draft: false
prerelease: true
continue-on-error: true
Expand Down Expand Up @@ -87,12 +89,22 @@ jobs:
- name: Build with Gradle
run: ./gradlew shadowJar

- name: Rename and Upload JAR file
- name: Rename JAR file
id: rename_and_upload
run: |
TARGET_JAR="BasePlugin-${{ env.VERSION }}.jar"
SOURCE_JAR=$(find run/plugins -name "*.jar" -print -quit)
mv "${SOURCE_JAR}" "${TARGET_JAR}"
mv "${SOURCE_JAR}" "${TARGET_JAR}"\
- name: Archive Artifacts
uses: actions/upload-artifact@v4
with:
name: BasePlugin-${{ env.VERSION }}
path: BasePlugin-${{ env.VERSION }}.jar

- name: Upload JAR file
id: rename_and_upload
run: |
gh release upload newest-build ${TARGET_JAR}
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

0 comments on commit 869e290

Please sign in to comment.