Skip to content

Commit

Permalink
automating
Browse files Browse the repository at this point in the history
  • Loading branch information
Haik committed Oct 14, 2023
1 parent 7694904 commit 9fc2ce5
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy NuGet Package

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: [ '7.x.x' ]
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ matrix.dotnet-version }}

- name: Build
run: dotnet build ./Pandatech.Crypto

- name: Test
run: dotnet test ./Pandatech.Crypto --collect:"XPlat Code Coverage"

- name: Pack
run: dotnet pack ./Pandatech.Crypto --output nupkgs

- name: Publish
run: dotnet nuget push ./nupkgs/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json

0 comments on commit 9fc2ce5

Please sign in to comment.