diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d4d4ad3..46346d5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,9 +1,7 @@ name: Publish SimpleAuthentication on NuGet permissions: - contents: read - packages: write - actions: write + contents: write on: push: @@ -47,11 +45,11 @@ jobs: run: dotnet nuget push *.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json - name: Create release - uses: actions/create-release@v1 + uses: softprops/action-gh-release@v2 env: - GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: v${{ steps.nbgv.outputs.NuGetPackageVersion }} - release_name: ${{ env.RELEASE_NAME }} ${{ steps.nbgv.outputs.NuGetPackageVersion }} + name: ${{ env.RELEASE_NAME }} ${{ steps.nbgv.outputs.NuGetPackageVersion }} draft: false prerelease: false diff --git a/.github/workflows/publish_abstractions.yml b/.github/workflows/publish_abstractions.yml index 3224b22..e7a8146 100644 --- a/.github/workflows/publish_abstractions.yml +++ b/.github/workflows/publish_abstractions.yml @@ -1,9 +1,7 @@ name: Publish Abstractions on NuGet permissions: - contents: read - packages: write - actions: write + contents: write on: push: @@ -48,11 +46,11 @@ jobs: run: dotnet nuget push *.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json - name: Create release - uses: actions/create-release@v1 + uses: softprops/action-gh-release@v2 env: - GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ env.TAG_NAME }}_v${{ steps.nbgv.outputs.NuGetPackageVersion }} - release_name: ${{ env.RELEASE_NAME }} ${{ steps.nbgv.outputs.NuGetPackageVersion }} + tag_name: v${{ steps.nbgv.outputs.NuGetPackageVersion }} + name: ${{ env.RELEASE_NAME }} ${{ steps.nbgv.outputs.NuGetPackageVersion }} draft: false prerelease: false diff --git a/.github/workflows/publish_swashbuckle.yml b/.github/workflows/publish_swashbuckle.yml index cb8b52f..08920c6 100644 --- a/.github/workflows/publish_swashbuckle.yml +++ b/.github/workflows/publish_swashbuckle.yml @@ -1,9 +1,7 @@ name: Publish Swashbuckle for Simple Authentication on NuGet permissions: - contents: read - packages: write - actions: write + contents: write on: push: @@ -48,11 +46,11 @@ jobs: run: dotnet nuget push *.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json - name: Create release - uses: actions/create-release@v1 + uses: softprops/action-gh-release@v2 env: - GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ env.TAG_NAME }}_v${{ steps.nbgv.outputs.NuGetPackageVersion }} - release_name: ${{ env.RELEASE_NAME }} ${{ steps.nbgv.outputs.NuGetPackageVersion }} + tag_name: v${{ steps.nbgv.outputs.NuGetPackageVersion }} + name: ${{ env.RELEASE_NAME }} ${{ steps.nbgv.outputs.NuGetPackageVersion }} draft: false prerelease: false diff --git a/src/SimpleAuthentication.Abstractions/SimpleAuthentication.Abstractions.csproj b/src/SimpleAuthentication.Abstractions/SimpleAuthentication.Abstractions.csproj index ba7a93f..6f59298 100644 --- a/src/SimpleAuthentication.Abstractions/SimpleAuthentication.Abstractions.csproj +++ b/src/SimpleAuthentication.Abstractions/SimpleAuthentication.Abstractions.csproj @@ -28,15 +28,15 @@ - + - + - +