Skip to content

Commit

Permalink
Update publish-on-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sonomirco authored Jul 29, 2021
1 parent 19bf8de commit db47564
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/publish-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,32 +48,27 @@ jobs:
needs: build
if: github.event_name == 'release'
runs-on: windows-latest
steps:
- uses: actions/setup-dotnet@v1
with:
dotnet-version: "3.1.x" # SDK Version to use.
source-url: https://nuget.pkg.github.com/sonomirco/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

steps:
- name: 💾 Download Artefact
uses: actions/download-artifact@v1
with:
name: 'Pipeline-packages'

- name: 📑 Dotnet NuGet Add Source
run: dotnet nuget add source --username sonomirco --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/sonomirco/index.json"

- name: 🚀 Publish the package
run: dotnet nuget push .\Pipeline-packages\*.nupkg --skip-duplicate
run: dotnet nuget push .\Pipeline-packages\*.nupkg --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }} --source "github"

push-nuget:
name: 'Publish NuGet Packages'
needs: build
if: github.event_name == 'release'
environment:
name: 'NuGet'
url: https://www.nuget.org/packages/PipelineBasic
runs-on: windows-latest
steps:
- uses: actions/setup-dotnet@v1
with:
dotnet-version: "3.1.x" # SDK Version to use.

- name: 💾 Download Artefact
uses: actions/download-artifact@v1
with:
Expand Down

0 comments on commit db47564

Please sign in to comment.