Skip to content

Commit

Permalink
Update netcore.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
L3tum authored Dec 6, 2019
1 parent fcdfedd commit 252a3b1
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/netcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ jobs:
- name: Nuget release
if: startsWith(github.ref, 'refs/tags/')
run: dotnet nuget push nupkgs/HardwareInformation.$(cat ./version).nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
- name: Github Package Release
- name: Github Package Setup
if: startsWith(github.ref, 'refs/tags/')
run: wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \
&& sudo dpkg -i packages-microsoft-prod.deb \
&& sudo add-apt-repository universe \
&& sudo apt-get update \
&& sudo apt-get install apt-transport-https \
&& sudo apt-get update \
&& sudo apt-get install -y nuget \
&& nuget push nupkgs/HardwareInformation.$(cat ./version).nupkg -k L3tum:${{ secrets.GITHUB_TOKEN }} -s "https://nuget.pkg.github.com/L3tum/index.json"
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ matrix.dotnet }}
source-url: https://nuget.pkg.github.com/L3tum/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Publish the package to GPR
if: startsWith(github.ref, 'refs/tags/')
run: dotnet nuget push nupkgs/HardwareInformation.$(cat ./version).nupkg

0 comments on commit 252a3b1

Please sign in to comment.