diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5646f51b..7addfe17 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,11 +10,6 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Setup .NET Core - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 6.0.x - - name: Find Latest Tag id: find uses: oprypin/find-latest-tag@v1.0.4 @@ -22,16 +17,24 @@ jobs: repository: ${{ github.repository }} releases-only: true - - name: Pack NuGet + - name: Restore + working-directory: src + run: dotnet restore -v m + + - name: Build + working-directory: src + run: dotnet build --configuration Release -p:Version=${{ steps.find.outputs.tag }} --no-restore + + - name: Pack working-directory: src - run: dotnet pack --configuration Release -v m --output nupkgs -p:PackageVersion=${{ steps.find.outputs.tag }} + run: dotnet pack --configuration Release --no-restore --no-build p:Version=${{ steps.find.outputs.tag }} -v m --output nupkgs - uses: AButler/upload-release-assets@v2.0 with: files: "**/Frank.Libraries.*.${{ steps.find.outputs.tag }}.nupkg" repo-token: ${{ secrets.GITHUB_TOKEN }} - - name: Push NuGets + - name: Publish working-directory: src run: dotnet nuget push "**/Frank.Libraries.*.${{ steps.find.outputs.tag }}.nupkg" -k ${{ secrets.NugetKey }} -s https://api.nuget.org/v3/index.json --skip-duplicate