From 5253bfb34ad99ad82eb9e6115569c94591e3c686 Mon Sep 17 00:00:00 2001 From: LukeFZ <17146677+LukeFZ@users.noreply.github.com> Date: Mon, 15 Dec 2025 04:13:24 +0100 Subject: [PATCH] fix build.yml errors and add release workflow --- .github/workflows/build.yml | 9 ++++++--- .github/workflows/release.yml | 25 +++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fef7d3f..14557dc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,10 +1,13 @@ name: Il2CppInspectorRedux Build -on: [push, workflow_dispatch] +on: [push, workflow_dispatch, workflow_call] jobs: build-redux-gui: # this already includes stuff only relevant for linux/macos for when the gui is released on those platforms - runs-on: windows-latest + runs-on: ${{ matrix.platform }}} + strategy: + matrix: + platform: ['windows-latest'] steps: - uses: actions/checkout@v4 @@ -156,7 +159,7 @@ jobs: with: dotnet-version: ${{ matrix.dotnet-version }} - - uses: actions/cache@v3 + - uses: actions/cache@v5 with: path: ~/.nuget/packages key: ${{ runner.os }}-nuget-cli-${{ matrix.rid }}-${{ hashFiles('**/packages.lock.json') }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..8624921 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,25 @@ +name: Il2CppInspectorRedux Release +on: + push: + tags: + - '*' + +jobs: + build_artifacts: + name: Build artifacts + uses: ./.github/workflows/build.yml + make_release: + name: Create release + needs: build_artifacts + runs-on: ubuntu-latest + steps: + - name: Download artifacts + uses: actions/download-artifacts@v7 + with: + path: ./artifacts/ + - name: Make release + uses: softprops/action-gh-release@v2 + with: + files: ./artifacts/**/* + name: Il2CppInspectorRedux ${{ github.ref_name }} + generate_release_notes: false \ No newline at end of file