Skip to content

Commit

Permalink
Create NuGet packages on GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
devlead committed Jul 8, 2020
1 parent 1e26a31 commit 5cddecb
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
jobs:
build:
name: Build
env:
TERM: xterm-256color
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -25,9 +27,20 @@ jobs:

- name: Build KuduSync.NET
run: |
dotnet build
dotnet build -p:Configuration=Release
- name: Test
- name: Test Windows
if: matrix.os == 'windows-latest'
shell: cmd
run: .\test.cmd

- name: Create NuGet Packages
if: matrix.os == 'windows-latest'
shell: cmd
run: .\BuildNugetPackages.cmd

- uses: actions/upload-artifact@v2
if: matrix.os == 'windows-latest'
with:
name: nupkg
path: artifacts/*.nupkg

0 comments on commit 5cddecb

Please sign in to comment.