Skip to content

Commit

Permalink
Getting ready to build the nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
chyczewski-maciej committed Oct 14, 2020
1 parent 87122c8 commit e9ec6f0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,21 @@ jobs:
run: ls
- name: pwd
run: pwd
- name: Update project version
uses: roryprimrose/set-vs-sdk-project-version@v1
with:
projectFilter: "*.csproj"
version: ${{ version }}
assemblyVersion: ${{ version }}
fileVersion: ${{ version }}
packageVersion: ${{ version }}
- name: Install dependencies
run: dotnet restore
- name: Test
run: dotnet test ./GenericBuffer.Tests/GenericBuffer.Tests.csproj
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Pack with dotnet
run: dotnet pack ./GenericBuffer.Core/GenericBuffer.Core.csproj --output nuget-packages --configuration Release
# - name: Push with dotnet
# run: dotnet nuget push nuget-packages/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

0 comments on commit e9ec6f0

Please sign in to comment.