fix: GitHub pre-release in action

This commit is contained in:
33 committed 2023-07-14 00:59:31 +08:00
1 parent 4a344ed653
commit f2698b4ccf
1 file changed
+2 -2
+2 -2
View File
@@ -87,7 +87,7 @@ jobs:
id: cslenv
run: |
output="$(ls build/libs | grep -v "sources")"
version=(echo ${{ github.ref_name }}$ | sed "s/v//")
version=$(echo ${{ github.ref_name }} | sed "s/v//")
if [[ "${{ matrix.modtype }}" == "Forge"* ]]; then
modloader="Forge"
path=$(echo ${{ matrix.modtype }} | sed "s#-#/#")
@@ -136,7 +136,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
if: ${{ (matrix.website == 'GitHub-PreRelease' && startsWith(github.ref, 'refs/heads')) || failure() }}
if: ${{ matrix.website == 'GitHub-PreRelease' && startsWith(github.ref, 'refs/heads') }}
name: 【GitHub Pre-Release】 Publish
uses: softprops/action-gh-release@v1
with: