mirror of
https://github.com/System-End/Discord-MC-Chat.git
synced 2026-04-19 23:22:49 +00:00
测试CI
This commit is contained in:
parent
8557358921
commit
f31a5aa0e0
1 changed files with 3 additions and 9 deletions
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
|
|
@ -21,16 +21,10 @@ jobs:
|
|||
if: ${{ runner.os != 'Windows' }}
|
||||
run: chmod +x ./gradlew
|
||||
- name: Build
|
||||
run: ./gradlew buildAndGather
|
||||
- name: Find Correct JAR
|
||||
id: findjar
|
||||
if: ${{ runner.os == 'Linux' && matrix.java == '17' }}
|
||||
run: |
|
||||
output="$(find build/libs/ ! -name "*-sources.jar" -type f -printf "%f\n")"
|
||||
echo "::set-output name=jarname::$output"
|
||||
run: ./gradlew buildAndGather --no-daemon
|
||||
- name: Capture Build Artifacts
|
||||
if: ${{ runner.os == 'Linux' && matrix.java == '17' }}
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ${{ steps.findjar.outputs.jarname }}
|
||||
path: build/libs/${{ steps.findjar.outputs.jarname }}
|
||||
name: build-artifacts
|
||||
path: versions/*/build/libs/
|
||||
Loading…
Add table
Reference in a new issue