Skip to content

Commit

Permalink
Release build version on MyGet feed
Browse files Browse the repository at this point in the history
  • Loading branch information
sagilio committed Sep 26, 2020
1 parent a4de3ee commit dbac6b3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/github-actions-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,19 @@ jobs:
with:
name: "drop-ci-test-results"
path: './test-results'

release-build-version:
runs-on: windows-latest
needs: build
if: github.repository_owner == 'casbin' && github.ref == 'refs/heads/master'
steps:
- name: Download Artefact
uses: actions/download-artifact@v1
with:
name: 'drop-ci-packages'

- name: Add myget nuget source
run: dotnet nuget add source https://www.myget.org/F/casbin-net/api/v2/package --name myget.org

- name: Push myget package
run: dotnet nuget push .\drop-ci-packages\*.nupkg -s myget.org -k $env:MYGET_API_TOKEN --skip-duplicate

0 comments on commit dbac6b3

Please sign in to comment.