Files
BetterAmongUs/.github/workflows/build.yml
T
2026-01-28 23:49:45 -06:00

47 lines
957 B
YAML

name: Build
on:
push:
branches:
- 'main'
- '*-hotfix'
- '*-beta'
- '*-dev'
paths:
- 'src/**'
pull_request:
branches:
- 'main'
- '*-hotfix'
- '*-beta'
- '*-dev'
paths:
- 'src/**'
jobs:
build-mod:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET 6
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0.x'
- name: Add BepInEx NuGet source
run: |
# Add the BepInEx NuGet feed
dotnet nuget add source --name bepinex "https://nuget.bepinex.dev/v3/index.json"
- name: Build
run: dotnet build src/*.csproj --configuration Release -p:CopyToGame=false
- name: Archive DLL file
uses: actions/upload-artifact@v4
with:
name: BetterAmongUs.dll
path: src/bin/Release/net6.0/BetterAmongUs.dll