Skip to content

Commit

Permalink
Update Deploy to NuGet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
arttonoyan authored Jan 5, 2021
1 parent dfd00fa commit e71ed48
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/Deploy to NuGet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
tags:
- 'v*'

env:
PROJECT_PATH: 'Artnix.Scheduler/Artnix.Scheduler.sln'
Expand All @@ -31,11 +30,15 @@ jobs:
- name: Build
run: dotnet build ${{ env.PROJECT_PATH }} --no-restore --configuration Release

- name: 'Get Version'
id: version
uses: battila7/get-version-action@v2

- name: Pack Artnix.Scheduler
run: dotnet pack 'Artnix.Scheduler/Artnix.Scheduler/Artnix.Scheduler.csproj' --no-restore --no-build --configuration Release --include-symbols --output ${{ env.PROJECT_OUTPUT_DIR }}
run: dotnet pack 'Artnix.Scheduler/Artnix.Scheduler/Artnix.Scheduler.csproj' --no-restore --no-build --configuration Release --include-symbols -p:PackageVersion=${{ steps.version.outputs.version-without-v }} --output ${{ env.PROJECT_OUTPUT_DIR }}

- name: Pack Artnix.SchedulerFramework.DependencyInjection
run: dotnet pack 'Artnix.Scheduler/Artnix.Scheduler/Artnix.SchedulerFramework.DependencyInjection.csproj' --no-restore --no-build --configuration Release --include-symbols --output ${{ env.PROJECT_OUTPUT_DIR }}
run: dotnet pack 'Artnix.Scheduler/Artnix.Scheduler/Artnix.SchedulerFramework.DependencyInjection.csproj' --no-restore --no-build --configuration Release --include-symbols -p:PackageVersion=${{ steps.version.outputs.version-without-v }} --output ${{ env.PROJECT_OUTPUT_DIR }}

- name: Push
run: dotnet nuget push ${{ env.PROJECT_OUTPUT_DIR }}\*.nupkg -k ${{ secrets.NUGET_AUTH_TOKEN }} -s ${{ env.NUGET_SOURCE_URI }}

0 comments on commit e71ed48

Please sign in to comment.