diff --git a/.github/workflows/netcore.yml b/.github/workflows/netcore.yml index 13aa65e..dd5c556 100644 --- a/.github/workflows/netcore.yml +++ b/.github/workflows/netcore.yml @@ -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