diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index ef119c8..70ec826 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -18,19 +18,19 @@ jobs: fetch-depth: 0 - name: Setup GitVersion - uses: gittools/actions/gitversion/setup@v0.9.15 + uses: gittools/actions/gitversion/setup@v0.10.2 with: versionSpec: 5.x - name: Execute GitVersion - uses: gittools/actions/gitversion/execute@v0.9.15 + uses: gittools/actions/gitversion/execute@v0.10.2 id: gitversion with: additionalArguments: /output BuildServer useConfigFile: true - name: Setup .NET - uses: actions/setup-dotnet@v2 + uses: actions/setup-dotnet@v3 with: dotnet-version: | 3.1.x @@ -46,7 +46,7 @@ jobs: run: dotnet test -c ${{ env.buildConfiguration }} --no-build -v normal --filter FullyQualifiedName!~IntegrationTests - name: Pack - run: dotnet pack -c ${{ env.buildConfiguration }} -o "${{ github.workspace }}/artifacts/" -p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersion }} + run: dotnet pack -c ${{ env.buildConfiguration }} -p:PackageOutputPath="${{ github.workspace }}/artifacts/" -p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersion }} - name: Upload uses: actions/upload-artifact@v3 @@ -56,16 +56,8 @@ jobs: ${{ github.workspace }}/artifacts/*.nupkg ${{ github.workspace }}/artifacts/*.snupkg - - name: Push (Pre-release) - if: ${{ steps.gitversion.outputs.nuGetPreReleaseTag != '' }} - uses: KnicKnic/os-specific-run@v1.0.4 - with: - linux: dotnet nuget push "${{ github.workspace }}/artifacts/*.nupkg" -s ${{ secrets.MYGET_SOURCE }} -k ${{ secrets.MYGET_API_KEY }} --skip-duplicate - windows: dotnet nuget push "${{ github.workspace }}\artifacts\*.nupkg" -s ${{ secrets.MYGET_SOURCE }} -k ${{ secrets.MYGET_API_KEY }} --skip-duplicate - - - name: Push (Release) - if: ${{ steps.gitversion.outputs.nuGetPreReleaseTag == '' }} - uses: KnicKnic/os-specific-run@v1.0.4 + - name: Push + uses: lethek/os-specific-run@v1.0.6 with: linux: dotnet nuget push "${{ github.workspace }}/artifacts/*.nupkg" -s ${{ secrets.NUGET_SOURCE }} -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate windows: dotnet nuget push "${{ github.workspace }}\artifacts\*.nupkg" -s ${{ secrets.NUGET_SOURCE }} -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate