Skip to content

1.0.0

1.0.0 #2

Workflow file for this run

name: Release
on:
release:
types: [published]
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Checkout
uses: actions/checkout@v4
- name: Restore
run: dotnet restore src
- name: Build
run: dotnet build src --configuration Release --no-restore
- name: Pack
run: dotnet pack src -c Release -o ./out --no-restore --no-build
- name: Push package - local
run: |
dotnet nuget push ./out/*.nupkg \
-s https://nuget.pkg.github.com/Byteology/index.json -k ${{ secrets.GITHUB_TOKEN }} \
--skip-duplicate --no-symbols
- name: Push package - NuGet.org
run: |
dotnet nuget push ./out/*.nupkg \
-s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} \
--skip-duplicate --no-symbols