diff --git a/.github/workflows/common.yml b/.github/workflows/common.yml index d339188..5216cb6 100644 --- a/.github/workflows/common.yml +++ b/.github/workflows/common.yml @@ -21,10 +21,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up JDK - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: '8' @@ -39,7 +39,7 @@ jobs: export GIT_COMMIT_DESC=$(git log --format=%B -n 1 $GITHUB_SHA) ./gradlew clean build --stacktrace - - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 name: Publish to Github Artifact with: name: CustomSkinLoader-${{ inputs.type }}-${{ github.run_number }} @@ -53,7 +53,7 @@ jobs: strategy: matrix: website: [CurseForge_Modrinth] - modtype: [Fabric,Forge-Active,Forge-Legacy] + modtype: [Fabric,ForgeV1,ForgeV2,ForgeV3] include: - website: ObjectStorage @@ -69,9 +69,9 @@ jobs: steps: - name: Checkout Git Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 name: Download Artifact Zips with: path: build @@ -86,15 +86,32 @@ jobs: id: cslenv run: | output="$(ls build/libs | grep -v "sources")" - if [[ "${{ matrix.modtype }}" == "Forge"* ]]; then - modloader="Forge" - path=$(echo ${{ matrix.modtype }} | sed "s#-#/#") - else - modloader=${{ matrix.modtype }} - path=${{ matrix.modtype }} - fi + + case "${{ matrix.modtype }}" in + "ForgeV1") + modloader="Forge" + path=`echo "${{ matrix.modtype }}" | sed 's#V#/V#'` + ;; + "ForgeV2" | "ForgeV3") + modloader=$(cat <> $GITHUB_OUTPUT - echo "modloader=$modloader" >> $GITHUB_OUTPUT + echo "modloader="$modloader"" >> $GITHUB_OUTPUT echo "filename=$(echo "$output"|grep $(echo ${{ matrix.modtype }}|sed "s#-##") )" >> $GITHUB_OUTPUT echo "version=$(grep "version=" build.properties | grep -v "#" | sed "s/version=//")" >> $GITHUB_OUTPUT echo "edition=$(echo ${{ matrix.modtype }} | sed "s/-//")" >> $GITHUB_OUTPUT @@ -134,7 +151,7 @@ jobs: - if: ${{ matrix.website == 'GitHub-PreRelease' && startsWith(github.ref, 'refs/heads') }} name: "[GitHub Pre-Release] Upload Tag" - uses: richardsimko/update-tag@v1.0.7 + uses: richardsimko/update-tag@v1 with: tag_name: CI-Build env: @@ -142,7 +159,7 @@ jobs: - if: ${{ matrix.website == 'GitHub-PreRelease' && startsWith(github.ref, 'refs/heads') }} name: "[GitHub Pre-Release] Publish" - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: token: ${{ secrets.GITHUB_TOKEN }} name: CustomSkinLoader CI-Build