Use custom kill button instead of vanilla for revived player #148
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: NewMod CI | |
| on: | |
| push: | |
| branches: [main, dev] | |
| tags: | |
| - 'v*' | |
| pull_request: | |
| branches: [main, dev] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| BuildingInsideCI: true | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Cache Dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.nuget/packages | |
| ~/.cache/bepinex | |
| key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-nuget- | |
| - name: Setup .NET 8.0 | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Restore NuGet Packages | |
| run: dotnet restore NewMod/NewMod.csproj | |
| - name: Build NewMod (Release) | |
| run: dotnet build NewMod/NewMod.csproj --configuration Release --no-restore | |
| - name: Build NewMod (Debug) | |
| run: dotnet build NewMod/NewMod.csproj --configuration Debug --no-restore | |
| - name: Build NewMod Android (Debug) | |
| run: dotnet build NewMod/NewMod.csproj --configuration ANDROID --no-restore | |
| - name: Upload NewMod DLL (Release) | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: NewMod | |
| path: NewMod/bin/Release/net6.0/NewMod.dll | |
| - name: Upload NewMod DLL (Debug) | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: NewMod-Debug | |
| path: NewMod/bin/Debug/net6.0/NewMod.dll | |
| - name: Upload NewMod DLL (Android) | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: NewMod-Android | |
| path: NewMod/bin/ANDROID/net6.0/NewMod.dll | |
| release: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch' | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Download Release DLL | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: NewMod | |
| path: ./release_artifacts | |
| - name: Publish GitHub Release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| tag_name: ${{ github.ref_name }} | |
| files: ./release_artifacts/**/NewMod.dll | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |