diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index db4916a..e8198cd 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -19,7 +19,7 @@ jobs: uses: actions/setup-dotnet@v3 with: dotnet-version: | - 6.0.x + 8.0.x - name: Restore dependencies run: dotnet restore - name: Build @@ -37,7 +37,7 @@ jobs: uses: actions/setup-dotnet@v3 with: dotnet-version: | - 6.0.x + 8.0.x - name: Restore dependencies run: dotnet restore - name: Build @@ -48,15 +48,13 @@ jobs: if: env.NUGET_TOKEN_EXISTS != '' run: | dotnet nuget push ./ImageSharpCompare/bin/Release/*.nupkg --skip-duplicate --api-key ${{secrets.NUGET_TOKEN}} --source https://api.nuget.org/v3/index.json - - uses: "marvinpinto/action-automatic-releases@latest" - with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: ${{ env.CURRENT_VERSION }} - prerelease: false - title: "Release Build" - files: | - ./ImageSharpCompare/bin/Release/*.nupkg - ./ImageSharpCompare/bin/Release/*.snupkg + - name: Github release + shell: bash + env: + GITHUB_TOKEN: ${{ github.TOKEN }} + if: env.GITHUB_TOKEN != '' + run: | + gh release create ${{env.CURRENT_VERSION}} ./ImageSharpCompare/bin/Release/*.*nupkg --generate-notes deployTest: if: github.ref != 'refs/heads/release' @@ -68,7 +66,7 @@ jobs: uses: actions/setup-dotnet@v3 with: dotnet-version: | - 6.0.x + 8.0.x - name: Restore dependencies run: dotnet restore - name: Build @@ -80,13 +78,10 @@ jobs: run: | ls ./ImageSharpCompare/bin/Release dotnet nuget push ./ImageSharpCompare/bin/Release/*.nupkg --skip-duplicate --api-key ${{secrets.NUGET_TEST_TOKEN}} --source https://apiint.nugettest.org/v3/index.json - - uses: "marvinpinto/action-automatic-releases@latest" - if: github.ref == 'refs/heads/main' - with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: "latest-prerelease" - prerelease: true - title: "Prerelease Build" - files: | - ./ImageSharpCompare/bin/Release/*.nupkg - ./ImageSharpCompare/bin/Release/*.snupkg + - name: Github prerelease + shell: bash + env: + GITHUB_TOKEN: ${{ github.TOKEN }} + if: env.GITHUB_TOKEN != '' + run: | + gh release create ${{env.CURRENT_VERSION}} ./ImageSharpCompare/bin/Release/*.*nupkg --prerelease --generate-notes diff --git a/ImageSharpCompare/ImageSharpCompare.csproj b/ImageSharpCompare/ImageSharpCompare.csproj index 6a4ad03..7572bce 100644 --- a/ImageSharpCompare/ImageSharpCompare.csproj +++ b/ImageSharpCompare/ImageSharpCompare.csproj @@ -1,6 +1,6 @@ - net6.0 + net6.0;net8.0 true true https://github.com/Codeuctivity/ImageSharp.Compare @@ -48,7 +48,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive