Skip to content

Update CI to use latest artifact action #2

Update CI to use latest artifact action

Update CI to use latest artifact action #2

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
paths:
- '**/*.csproj'
- '*.cake'
- '.github/workflows/main.yml'
jobs:
build:
runs-on: ubuntu-latest
if: github.repository_owner == 'Next-Fast'
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 9.x
- name: Run the Cake script
uses: cake-build/cake-action@v1
with:
verbosity: Diagnostic
- uses: actions/upload-artifact@v4
with:
name: BepInEx.IL2CPP.MSBuild.nupkg
path: ./Build/*.nupkg
- name: Push NuGet package
run: |
dotnet nuget push ./Build/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGETKEY }}