Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
filipnavara committed Aug 9, 2023
2 parents 2d3b00c + c17b40f commit 209463b
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: .NET

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Build
run: dotnet build -c Release
- name: Pack
run: dotnet pack
- name: Publish the package to nuget.org
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
run: dotnet nuget push nupkg/*.nupkg -k $NUGET_API_KEY -s https://api.nuget.org/v3/index.json
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}

0 comments on commit 209463b

Please sign in to comment.