ci: Add SixLabors NuGet source and license file #122
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
| # This workflow will build a .NET project | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | |
| name: .NET | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 10.0.x | |
| - run: dotnet nuget add source https://f.feedz.io/sixlabors/sixlabors/nuget/index.json | |
| - run: echo "${{ secrets.SIXLABORS_LICENSE }}" > src/sixlabors.lic | |
| - name: Build | |
| run: dotnet publish -c Release -p:PublishSingleFile=true --self-contained true | |
| - name: Upload Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| path: src/bin/Release/net10.0/linux-x64/publish |