From 2c3fe008fbf419c2d6291ecde276f6a4b7db5f5b Mon Sep 17 00:00:00 2001 From: Mohammadreza Date: Wed, 23 Dec 2020 09:21:15 +0000 Subject: [PATCH] Create publish-packages.yml --- .github/workflows/publish-packages.yml | 35 ++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/publish-packages.yml diff --git a/.github/workflows/publish-packages.yml b/.github/workflows/publish-packages.yml new file mode 100644 index 0000000..f338d16 --- /dev/null +++ b/.github/workflows/publish-packages.yml @@ -0,0 +1,35 @@ +name: Publish Packages + +on: + push: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: dotnet/nbgv@v0.3.1 + with: + setAllVars: true + - name: Setup .NET + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 5.0.101 + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build --configuration Release --no-restore /p:PublicRelease=true + - name: Test + run: dotnet test --no-build --verbosity normal + - name: Publish MapTo + uses: brandedoutcast/publish-nuget@v2.5.5 + with: + PROJECT_FILE_PATH: src/MapTo/MapTo.csproj + NUGET_KEY: ${{secrets.NUGET_API_KEY}} + NUGET_SOURCE: https://api.nuget.org + TAG_COMMIT: false + INCLUDE_SYMBOLS: true + VERSION_STATIC: ${{env.NBGV_Version}}