From 701cef165ea65199b4559d705dd4a4c1e04cb13c Mon Sep 17 00:00:00 2001 From: Dan Jagnow Date: Thu, 25 Apr 2024 23:09:01 -0500 Subject: [PATCH] Updated NuGet packages and GitHub Actions Updated all NuGet packages and GitHub Actions to the latest versions. Also updated to the latest .NET 8 SDK. Updated the GitHub Actions step for creating a release to simply use gh create release instead of the obsolete actions/create-release action. --- .github/workflows/build.yml | 16 ++++++---------- Directory.Packages.props | 8 ++++---- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 16a2ebf..b386621 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,14 +11,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 with: fetch-depth: 0 # avoid shallow clone so nbgv can do its work. - name: Install .NET 8 SDK uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4.0.0 with: - dotnet-version: 8.0.200 + dotnet-version: 8.0.204 - name: Build run: dotnet build --configuration Release --verbosity minimal @@ -30,7 +30,7 @@ jobs: BLIZZARD_CLIENT_SECRET: ${{ secrets.BLIZZARD_CLIENT_SECRET }} - name: Upload build artifacts - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 + uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 with: name: NuGet packages path: | @@ -41,13 +41,9 @@ jobs: if: ${{ startsWith(github.ref, 'refs/tags/v') }} # Only for a tag run: dotnet nuget push "artifacts/package/release/**.nupkg" --skip-duplicate --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json - - name: Create GitHub Release + - name: Create GitHub release if: ${{ startsWith(github.ref, 'refs/tags/v') }} # Only for a tag - uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # v1.1.4 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - draft: false - prerelease: false + TAG: ${{ github.ref_name }} + run: gh release create "$TAG" --repo="$GITHUB_REPOSITORY" --title="${TAG#v}" --generate-notes diff --git a/Directory.Packages.props b/Directory.Packages.props index 89ec060..1bd9455 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -5,11 +5,11 @@ - + - + all runtime; build; native; contentfiles; analyzers; buildtransitive @@ -17,8 +17,8 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive