From 1dd583b4225d3bbc12a8ec4804aad680ff90393c Mon Sep 17 00:00:00 2001 From: dreamsyntax Date: Thu, 23 Oct 2025 21:16:03 -0700 Subject: [PATCH] Updated: GH Actions to latest --- .github/workflows/build-and-publish.yml | 40 +++++++++---------------- .github/workflows/deploy-mkdocs.yml | 16 ++-------- 2 files changed, 16 insertions(+), 40 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index bb05f92..8d6d6e1 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -2,11 +2,11 @@ name: Build and Publish on: push: - branches: [ master, 2.X ] + branches: [ master, main ] tags: - '*' pull_request: - branches: [ master, 2.X ] + branches: [ master, main ] workflow_dispatch: env: @@ -25,31 +25,28 @@ jobs: shell: pwsh steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v5 with: fetch-depth: 0 - name: Setup .NET Core SDK (3.1.x) - uses: actions/setup-dotnet@v1.9.0 + uses: actions/setup-dotnet@v5 with: - # Optional SDK version(s) to use. If not provided, will install global.json version when available. Examples: 2.2.104, 3.1, 3.1.x dotnet-version: 3.1.x - - name: Setup .NET Core SDK (5.0.x) - uses: actions/setup-dotnet@v1.9.0 + - name: Setup .NET Core SDK (5.0) + uses: actions/setup-dotnet@v5 with: - # Optional SDK version(s) to use. If not provided, will install global.json version when available. Examples: 2.2.104, 3.1, 3.1.x dotnet-version: 5.0.x - - name: Setup .NET Core SDK (6.0.x) - uses: actions/setup-dotnet@v1.9.0 + - name: Setup .NET Core SDK (9.0) + uses: actions/setup-dotnet@v5 with: - # Optional SDK version(s) to use. If not provided, will install global.json version when available. Examples: 2.2.104, 3.1, 3.1.x - dotnet-version: 6.0.x + dotnet-version: 9.0.x # Required for C#10 features. - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v6 with: node-version: '14' @@ -67,11 +64,8 @@ jobs: dotnet test ./Source/Reloaded.Messaging.Tests/Reloaded.Messaging.Tests.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput="../../$env:CODE_COVERAGE_PATH" --% /p:Exclude=\"[xunit.*]*\" - name: Codecov - # You may pin to the exact commit or the version. - # uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b - uses: codecov/codecov-action@v2.1.0 + uses: codecov/codecov-action@v5 with: - # Comma-separated list of files to upload files: ${{ env.CODE_COVERAGE_PATH }} - name: Create Changelog (on Tag) @@ -86,31 +80,25 @@ jobs: } - name: Upload NuGet Package Artifact - uses: actions/upload-artifact@v2.2.4 + uses: actions/upload-artifact@v4 with: - # Artifact name name: NuGet Packages - # A file, directory or wildcard pattern that describes what to upload path: | ${{ env.NUPKG_GLOB }} - name: Upload Changelog Artifact - uses: actions/upload-artifact@v2.2.4 + uses: actions/upload-artifact@v4 with: - # Artifact name name: Changelog - # A file, directory or wildcard pattern that describes what to upload path: ${{ env.CHANGELOG_PATH }} retention-days: 0 - name: Upload to GitHub Releases - uses: softprops/action-gh-release@v0.1.14 + uses: softprops/action-gh-release@v2 if: env.IS_RELEASE == 'true' with: - # Path to load note-worthy description of changes in release from body_path: ${{ env.CHANGELOG_PATH }} - # Newline-delimited list of path globs for asset files to upload files: | ${{ env.NUPKG_GLOB }} ${{ env.CHANGELOG_PATH }} diff --git a/.github/workflows/deploy-mkdocs.yml b/.github/workflows/deploy-mkdocs.yml index 7a2567a..6735029 100644 --- a/.github/workflows/deploy-mkdocs.yml +++ b/.github/workflows/deploy-mkdocs.yml @@ -1,32 +1,20 @@ name: DeployMkDocs -# Controls when the action will run. on: - # Triggers the workflow on push on the master branch push: - branches: [ master, 2.X ] + branches: [ master, main ] - # Allows you to run this workflow manually from the Actions tab workflow_dispatch: -# A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - # This workflow contains a single job called "build" build: - # The type of runner that the job will run on runs-on: ubuntu-latest - # Steps represent a sequence of tasks that will be executed as part of the job steps: - - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - name: Checkout Branch - uses: actions/checkout@v2 + uses: actions/checkout@v5 - # Deploy MkDocs - name: Deploy MkDocs - # You may pin to the exact commit or the version. - # uses: mhausenblas/mkdocs-deploy-gh-pages@66340182cb2a1a63f8a3783e3e2146b7d151a0bb uses: mhausenblas/mkdocs-deploy-gh-pages@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file