mirror of
https://github.com/System-End/Discord-MC-Chat.git
synced 2026-04-19 22:05:11 +00:00
Actions产出文件名使用原名
This commit is contained in:
parent
24d397440e
commit
f91cf6d945
2 changed files with 9 additions and 3 deletions
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
|
|
@ -22,9 +22,15 @@ jobs:
|
|||
run: chmod +x ./gradlew
|
||||
- name: Build
|
||||
run: ./gradlew build
|
||||
- name: Find Correct JAR
|
||||
id: findjar
|
||||
if: ${{ runner.os == 'Linux' && matrix.java == '17' }}
|
||||
run: |
|
||||
output="$(find wrapper/build/libs/ ! -name "*-sources.jar" -type f -printf "%f\n")"
|
||||
echo "::set-output name=jarname::$output"
|
||||
- name: Capture Build Artifacts
|
||||
if: ${{ runner.os == 'Linux' && matrix.java == '17' }}
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: build-artifacts
|
||||
path: wrapper/build/libs/
|
||||
name: ${{ steps.findjar.outputs.jarname }}
|
||||
path: wrapper/build/libs/${{ steps.findjar.outputs.jarname }}
|
||||
|
|
@ -76,6 +76,6 @@ processResources {
|
|||
|
||||
loom {
|
||||
runConfigs.all {
|
||||
runDir "../../run"
|
||||
runDir "../run"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue