Fix hopefully this time #376
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: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: dotnet/nbgv@v0.4.2 | |
with: | |
setAllVars: true | |
- name: Setup .NET Core SDK | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: | | |
8.0.x | |
9.0.x | |
- name: dotnet build | |
run: dotnet build BedrockFramework.sln -c Release | |
- name: dotnet test | |
run: dotnet test BedrockFramework.sln -c Release --no-build | |
- name: dotnet pack | |
run: dotnet pack BedrockFramework.sln -c Release --no-build --include-source --include-symbols | |
- name: setup nuget | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
uses: NuGet/setup-nuget@v1.0.5 | |
with: | |
nuget-version: latest | |
- name: Set API key | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
run: nuget setapikey ${{ secrets.FEEDZ_TOKEN }} -Config nuget.config -Source https://f.feedz.io/davidfowl/bedrockframework/nuget/index.json | |
- name: Set symbols API key | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
run: nuget setapikey ${{ secrets.FEEDZ_TOKEN }} -Config nuget.config -Source https://f.feedz.io/davidfowl/bedrockframework/symbols | |
- name: push packages | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
run: dotnet nuget push **/*.nupkg -s https://f.feedz.io/davidfowl/bedrockframework/nuget/index.json -ss https://f.feedz.io/davidfowl/bedrockframework/symbols --skip-duplicate |