Skip to content

Big refactoring

Big refactoring #378

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: dotnet/[email protected]
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/main'
uses: NuGet/[email protected]
with:
nuget-version: latest
- name: Set API key
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
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/main'
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/main'
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