This repository was archived by the owner on Sep 24, 2025. It is now read-only.
Fix how conditions are used for references #7
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: Build and Test | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: | | |
6.0.x | |
8.0.x | |
9.0.x | |
- name: Run tests | |
run: dotnet test | |
- name: Run publish script | |
run: ./publish-nix.sh | |
- name: Upload build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: 'Nuget Package' | |
path: "*.nupkg,*.snupkg" | |
- name: Upload to rolling | |
uses: ncipollo/release-action@v1.14.0 | |
with: | |
allowUpdates: True | |
artifacts: "*.nupkg,*.snupkg" | |
body: 'Last built commit: ${{ github.sha }}' | |
name: 'Rolling Release' | |
prerelease: True | |
replacesArtifacts: True | |
tag: "rolling" | |
updateOnlyUnreleased: True |