This repository was archived by the owner on Jan 22, 2025. It is now read-only.
Workflow file for this run
This file contains 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: AutoBuild .NET | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.nuget/packages | |
~/.cache/bepinex | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-nuget- | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 6.x | |
- name: install wget | |
run: sudo apt install wget | |
- name: download BepInEx | |
run: wget https://builds.bepinex.dev/projects/bepinex_be/688/BepInEx-Unity.IL2CPP-win-x86-6.0.0-be.688%2B4901521.zip | |
- name: unzip BepInEx | |
run: unzip BepInEx-Unity.IL2CPP-win-x86-6.0.0-be.688+4901521.zip -d ./Release/ | |
- name: path | |
run: sudo chmod -R 777 ./Release | |
- name: download Reactor | |
run: wget https://github.com/NuclearPowered/Reactor/releases/download/2.2.0/Reactor.dll -P ./Release/BepInEx/plugins | |
- name: Build | |
run: dotnet build TheOtherRoles/TheOtherRoles.csproj --configuration Release --output ./Release/BepInEx/plugins | |
- name: Upload TheOtherUsDll | |
uses: actions/upload-artifact@v4.3.1 | |
with: | |
name: TheOtherRoles.dll | |
path: ./Release/BepInEx/plugins/TheOtherRoles.dll | |
- name: Del Other Files | |
run: rm -rf ./Release/BepInEx/plugins/TheOtherRoles.deps.json ./Release/BepInEx/plugins/TheOtherRoles.pdb ./Release/changelog.txt ./Release/BepInEx/config/BepInEx.cfg | |
- name: Move cfg | |
run: mv BepInEx.cfg ./Release/BepInEx/config/BepInEx.cfg | |
- name: Upload TheOtherUs | |
uses: actions/upload-artifact@v4.3.1 | |
with: | |
name: TheOtherUs | |
path: ./Release/ |