Skip to content

Commit

Permalink
Create dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
enisgurkann authored Jan 4, 2022
1 parent 8b3912a commit 982effe
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: .NET Core CI

on: [push]

jobs:
build_and_test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name: Setup .NET 5.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.101

- name: Setup .NET Core 3.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.403
if: matrix.os == 'ubuntu-latest'
- uses: actions/checkout@v1
- name: Build
run: dotnet build ./EnLock.sln --configuration Release
- name: Test
run: dotnet test ./EnLock.sln
- name: Pack
run: dotnet pack -c Release --no-build -o ./packages
- name: Push
run: dotnet nuget push ./packages/EnLock.*.nupkg --skip-duplicate --api-key ${{secrets.NUGET_TOKEN}} --source https://api.nuget.org/v3/index.json

0 comments on commit 982effe

Please sign in to comment.