diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 833bc36..c6a3ca0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -74,16 +74,11 @@ jobs: - name: Build GUI run: dotnet publish -c Release --no-self-contained --no-restore -o ./win-x64 -r win-x64 ./Il2CppInspector.Redux.GUI/Il2CppInspector.Redux.GUI.csproj - - name: Zip artifacts - shell: pwsh - run: | - Compress-Archive -Path ./win-x64/* -DestinationPath ./win-x64.zip - - name: Upload GUI Artifact uses: actions/upload-artifact@v4 with: name: Il2CppInspectorRedux.GUI - path: ./win-x64.zip + path: ./win-x64 build-redux-cli: runs-on: ubuntu-latest @@ -122,16 +117,11 @@ jobs: - name: Build & Publish run: dotnet publish -c Release --no-self-contained --no-restore -o ./${{ matrix.rid }} -r ${{ matrix.rid }} ./Il2CppInspector.Redux.CLI/Il2CppInspector.Redux.CLI.csproj - - name: Zip artifacts - shell: pwsh - run: | - Compress-Archive -Path ./${{ matrix.rid }}/* -DestinationPath ./${{ matrix.rid }}.zip - - name: Upload artifacts uses: actions/upload-artifact@v4 with: name: Il2CppInspectorRedux.CLI-${{ matrix.rid }} - path: ./${{ matrix.rid }}.zip + path: ./${{ matrix.rid }} build-old-gui: runs-on: windows-latest @@ -164,16 +154,11 @@ jobs: - name: Build GUI run: dotnet publish -c Release --no-self-contained --no-restore -o ./win-x64 -r win-x64 ./Il2CppInspector.GUI/Il2CppInspector.GUI.csproj - - name: Zip artifacts - shell: pwsh - run: | - Compress-Archive -Path ./win-x64/* -DestinationPath ./win-x64.zip - - name: Upload GUI artifact uses: actions/upload-artifact@v4 with: name: Il2CppInspectorRedux.Legacy.GUI - path: ./win-x64.zip + path: ./win-x64 build-old-cli: runs-on: ubuntu-latest @@ -210,13 +195,8 @@ jobs: - name: Build & Publish run: dotnet publish -c Release --no-self-contained --no-restore -o ./${{ matrix.rid }} -r ${{ matrix.rid }} ./Il2CppInspector.CLI/Il2CppInspector.CLI.csproj - - name: Zip artifacts - shell: pwsh - run: | - Compress-Archive -Path ./${{ matrix.rid }}/* -DestinationPath ./${{ matrix.rid }}.zip - - name: Upload artifacts uses: actions/upload-artifact@v4 with: name: Il2CppInspectorRedux.Legacy.CLI-${{ matrix.rid }} - path: ./${{ matrix.rid }}.zip + path: ./${{ matrix.rid }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2c75357..a7198b3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,8 +17,16 @@ jobs: uses: actions/download-artifact@v7 with: path: ./artifacts/ + - name: Create artifact ZIPs + shell: pwsh + working-directory: ./artifacts + run: 'Get-ChildItem -Path . -Directory | ForEach-Object { Compress-Archive -Path $_.Name -DestinationPath "$($_.Name).zip" }' + - name: Delete unzipped artifact folders + shell: pwsh + working-directory: ./artifacts + run: 'Get-ChildItem -Path . -Directory | ForEach-Object { Remove-Item $_.Name -Recurse }' - name: Make release - uses: softprops/action-gh-release@v2 + uses: softprops/action-gh-release@v2.4.2 with: files: ./artifacts/**/* name: Il2CppInspectorRedux ${{ github.ref_name }}