diff --git a/.github/workflows/benchmark.yaml b/.github/workflows/benchmark.yaml index e7c31f7..ec8842d 100644 --- a/.github/workflows/benchmark.yaml +++ b/.github/workflows/benchmark.yaml @@ -13,8 +13,8 @@ jobs: benchmark: runs-on: windows-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-dotnet@v4 + - uses: actions/checkout@v5 + - uses: actions/setup-dotnet@v5 with: dotnet-version: '10.0.x' - name: Run benchmark @@ -40,7 +40,7 @@ jobs: $modifiedContent = $fileContent -replace "``````", "```````n" $modifiedContent | Set-Content $fileName - name: Deploy Markdown Result - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ForceOps.Benchmarks/BenchmarkDotNet.Artifacts/results diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b1db5db..4997c24 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -15,10 +15,10 @@ jobs: runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - name: Install Dotnet - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: "10.0.x" diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1f6a3c7..de134dc 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -18,23 +18,22 @@ jobs: target: x86_64-pc-windows-msvc steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 + + - name: Install Dotnet + uses: actions/setup-dotnet@v5 + with: + dotnet-version: "10.0.x" - name: Get version id: get_version - uses: KageKirin/get-csproj-version@v1.0.0 - with: - file: Directory.Build.props + shell: bash + run: echo "version=$(dotnet msbuild Directory.Build.props -getProperty:Version)" >> "$GITHUB_OUTPUT" - name: Print Current Version run: | echo Current Version: ${{ steps.get_version.outputs.version }} - - name: Install Dotnet - uses: actions/setup-dotnet@v4 - with: - dotnet-version: "10.0.x" - - name: Directory structure run: | ls @@ -57,7 +56,7 @@ jobs: - name: Create release if: ${{ github.ref == 'refs/heads/main' && startsWith(github.event.head_commit.message, 'chore(release)') }} - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: draft: true name: "${{ steps.get_version.outputs.version }}"