Skip to content

Commit faa94ff

Browse files
committed
Fix cicd
1 parent 1a822a3 commit faa94ff

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/preview.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ jobs:
115115
mv -vf .minecraft/* ./
116116
zip -r ./${{ env.NAME }}-${{ env.VERSION_NORMAL }}-server.zip ./docker-compose.yml ./PleaseRead.txt ./log4j2_112-116.xml ./Install.bat ./Install.sh ./ServerStart.bat ./ServerStart.sh ./settings.bat ./settings.sh ./TmuxServer.sh ./bansoukou/ ./config/ ./local/ ./mods/ ./resources/ ./scripts/
117117
118-
- if: matrix.version == 'LWJGL3' || ${{ github.event.inputs.only_artifact }} == false
118+
- if: matrix.version == 'LWJGL3' && !${{ github.event.inputs.only_artifact }}
119119
name: Create GitHub Release (${{ matrix.version }})
120120
uses: softprops/action-gh-release@v2
121121
with:
@@ -125,7 +125,7 @@ jobs:
125125
files: |
126126
./${{ env.NAME }}-${{ env.VERSION_LWJGL3 }}-mmc.zip
127127
128-
- if: matrix.version == 'NORMAL' || ${{ github.event.inputs.only_artifact }} == false
128+
- if: matrix.version == 'NORMAL' && !${{ github.event.inputs.only_artifact }}
129129
name: Create GitHub Release (${{ matrix.version }})
130130
uses: softprops/action-gh-release@v2
131131
with:
@@ -137,9 +137,16 @@ jobs:
137137
./${{ env.NAME }}-${{ env.VERSION_NORMAL }}-mmc.zip
138138
./${{ env.NAME }}-${{ env.VERSION_NORMAL }}-server.zip
139139
140-
- if: ${{ github.event.inputs.only_artifact }} == true
140+
- if: matrix.version == 'LWJGL3' && ${{ github.event.inputs.only_artifact }}
141141
name: Create GitHub Artifact
142142
uses: actions/upload-artifact@v4
143143
with:
144-
name: ${{ env.NAME }}-v${{ github.event.inputs.version }}-${{ github.event.inputs.preview_version }}
145-
path: ./${{ env.NAME }}-*.zip
144+
name: (${{ matrix.version }}) ${{ env.NAME }} v${{ github.event.inputs.version }}
145+
path: ./${{ env.NAME }}-${{ env.VERSION_LWJGL3 }}-mmc.zip
146+
147+
- if: matrix.version == 'NORMAL' && ${{ github.event.inputs.only_artifact }}
148+
name: Create GitHub Artifact
149+
uses: actions/upload-artifact@v4
150+
with:
151+
name: (${{ matrix.version }}) ${{ env.NAME }} v${{ github.event.inputs.version }}
152+
path: ./${{ env.NAME }}-${{ env.VERSION_NORMAL }}-mmc.zip

0 commit comments

Comments
 (0)