Skip to content

Commit

Permalink
GitHub Actions nuget artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
rajsite committed Dec 18, 2020
1 parent f96b960 commit 4bd516f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,14 @@ jobs:
- run: tzutil /s "Central Standard Time"
- run: make testnative

- uses: nuget/setup-nuget@v1
- run: nuget pack VireoSDK.nuspec -properties version="$Env:ESH_VERSION"
- uses: actions/upload-artifact@v2
with:
name: nuget package
path: ./*.nupkg
if-no-files-found: error

- if: startsWith(github.ref, 'refs/tags/v')
uses: actions/upload-release-asset@v1
env:
Expand All @@ -156,9 +164,6 @@ jobs:
asset_name: ${{ env.ESH_32_DEBUG }}
asset_path: ${{ env.ESH_32_DEBUG }}
asset_content_type: application/zip

- uses: nuget/setup-nuget@v1
- run: nuget pack VireoSDK.nuspec -properties version="$Env:ESH_VERSION"
- if: startsWith(github.ref, 'refs/tags/v')
run: nuget push $(echo (get-item ./*.nupkg).FullName) --api-key {{ secrets.NUGET_TOKEN}} --source https://api.nuget.org/v3/index.json

Expand Down

0 comments on commit 4bd516f

Please sign in to comment.