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