Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 45 additions & 25 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,38 +8,58 @@ env:

on:
push:
branches: [ master ]
tags:
- v[0-9]+.[0-9]+.[0-9]+*
branches: [master]
pull_request:
branches: [ master ]
branches: [master]
release:

jobs:
build:

runs-on: windows-latest
permissions:
packages: write
contents: read

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
- name: Restore
run: dotnet tool restore
- name: Build
run: dotnet build -c Release
- name: Test
run: dotnet test --no-build -c Release tests
- name: Pack
run: dotnet pack --no-restore -c Release --include-symbols -o bin
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: nupkg-${{ matrix.runs-on }}
path: ./bin/*nupkg
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
- name: Set env
if: startsWith( github.ref, 'refs/tags/v' )
run: |
RELEASE_VERSION="${GITHUB_REF#refs/*/}"
echo "RELEASE_VERSION=${RELEASE_VERSION}" >> $GITHUB_ENV
echo "Version=${RELEASE_VERSION:1}" >> $GITHUB_ENV

- name: Restore
run: dotnet tool restore
- name: Build
run: dotnet build -c Release
- name: Test
run: dotnet test --no-build -c Release tests
- name: Pack
run: dotnet pack --no-restore -c Release --include-symbols -o bin

- name: Upload Test Results
if: failure()
uses: actions/upload-artifact@v4
with:
name: verify-test-results
path: |
**/*.received.*
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: nupkg-${{ matrix.runs-on }}
path: ./bin/*nupkg
- name: Push
if: startsWith( github.ref, 'refs/tags/v' )
run: dotnet nuget push bin\*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_KEY }}
39 changes: 19 additions & 20 deletions .github/workflows/private-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,25 @@ on:

jobs:
build:

runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
- name: Restore
run: dotnet tool restore
- name: Build
run: dotnet build -c Release
- name: Test
run: dotnet test --no-build -c Release tests
- name: Pack
run: dotnet pack -c Release --include-symbols -o bin
- name: Push Package to Local Feed
run: dotnet nuget push bin\*.nupkg -s https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json -k ${{ secrets.GITHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
- name: Restore
run: dotnet tool restore
- name: Build
run: dotnet build -c Release
- name: Test
run: dotnet test --no-build -c Release tests
- name: Pack
run: dotnet pack --no-restore -c Release --include-symbols -o bin
- name: Push Package to Local Feed
run: dotnet nuget push bin\*.nupkg -s https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json -k ${{ secrets.GITHUB_TOKEN }}
46 changes: 26 additions & 20 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,32 @@ on:

jobs:
build:

runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
- name: Restore
run: dotnet tool restore
- name: Build
run: dotnet build -c Release
- name: Test
run: dotnet test --no-build -c Release tests
- name: Pack
run: dotnet pack --no-build -c Release --include-symbols -o bin
- name: Push Package to NuGet.org
run: dotnet nuget push bin\*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_KEY }}
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
- name: Set env
if: startsWith( github.ref, 'refs/tags/v' )
run: |
RELEASE_VERSION="${GITHUB_REF#refs/*/}"
echo "RELEASE_VERSION=${RELEASE_VERSION}" >> $GITHUB_ENV
echo "Version=${RELEASE_VERSION:1}" >> $GITHUB_ENV
- name: Restore
run: dotnet tool restore
- name: Build
run: dotnet build -c Release
- name: Test
run: dotnet test --no-build -c Release tests
- name: Pack
run: dotnet pack --no-restore -c Release --include-symbols -o bin
- name: Push
if: startsWith( github.ref, 'refs/tags/v' )
run: dotnet nuget push bin\*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_KEY }}
Loading