fix build.yml errors and add release workflow

This commit is contained in:
LukeFZ
2025-12-15 04:13:24 +01:00
parent 9bd32cee84
commit 5253bfb34a
2 changed files with 31 additions and 3 deletions

View File

@@ -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') }}

25
.github/workflows/release.yml vendored Normal file
View File

@@ -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