From 2fbd3b0bc7de0a91c7da032798bbc813704775c3 Mon Sep 17 00:00:00 2001 From: wheeheee <104880306+wheeheee@users.noreply.github.com> Date: Mon, 1 Jun 2026 14:47:03 +0800 Subject: [PATCH 1/2] update workflow setup-dotnet@v5 checkout@v6 softprops/action-gh-release@v3 and permissions --- .github/workflows/build.yml | 8 +++++--- .github/workflows/release.yml | 27 +++++++++++++++------------ 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9131e6f..88bfe2e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,13 +3,15 @@ on: [push, pull_request, workflow_dispatch] jobs: build: + permissions: + contents: read runs-on: windows-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - - uses: actions/setup-dotnet@v4 + - uses: actions/setup-dotnet@v5 with: - dotnet-version: '8.0.x' + dotnet-version: '10.0.x' - run: dotnet build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d591afa..165a537 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,22 +1,25 @@ +name: Publish Release on: push: # Sequence of patterns matched against refs/tags tags: - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 -name: Publish Release - jobs: build: name: Upload Release Asset + + permissions: + contents: write + runs-on: windows-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Setup .NET SDK - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: - dotnet-version: '8.x' + dotnet-version: '10.x' - name: Build solution run: dotnet build @@ -29,20 +32,20 @@ jobs: - name: Zip published output run: | - Compress-Archive -Path ./bin/Release/*/win-x64/publish -DestinationPath WinToLinux_x64.zip - Compress-Archive -Path ./bin/Release/*/win-x86/publish -DestinationPath WinToLinux_x86.zip - Compress-Archive -Path ./bin/Release/*/win-arm64/publish -DestinationPath WinToLinux_arm64.zip + Compress-Archive -Path ./bin/Release/net10.0-windows/win-x64/publish -DestinationPath WinToLinux_x64.zip + Compress-Archive -Path ./bin/Release/net10.0-windows/win-x86/publish -DestinationPath WinToLinux_x86.zip + Compress-Archive -Path ./bin/Release/net10.0-windows/win-arm64/publish -DestinationPath WinToLinux_arm64.zip - name: Rename .exe output run: | New-Item -ItemType Directory -Force -Path artifacts - Move-Item -Path ./bin/Release/*/win-x64/publish/WinToLinux.exe -Destination ./artifacts/WinToLinux-x64.exe - Move-Item -Path ./bin/Release/*/win-x86/publish/WinToLinux.exe -Destination ./artifacts/WinToLinux-x86.exe - Move-Item -Path ./bin/Release/*/win-arm64/publish/WinToLinux.exe -Destination ./artifacts/WinToLinux-arm64.exe + Move-Item -Path ./bin/Release/net10.0-windows/win-x64/publish/WinToLinux.exe -Destination ./artifacts/WinToLinux-x64.exe + Move-Item -Path ./bin/Release/net10.0-windows/win-x86/publish/WinToLinux.exe -Destination ./artifacts/WinToLinux-x86.exe + Move-Item -Path ./bin/Release/net10.0-windows/win-arm64/publish/WinToLinux.exe -Destination ./artifacts/WinToLinux-arm64.exe shell: pwsh - name: Upload Release Asset - uses: softprops/action-gh-release@v2 + uses: softprops/action-gh-release@v3 with: files: | ./artifacts/WinToLinux-x64.exe From fb328372118861409ff1ebcaa1a96ea0da04b23a Mon Sep 17 00:00:00 2001 From: wheeheee <104880306+wheeheee@users.noreply.github.com> Date: Mon, 1 Jun 2026 14:58:22 +0800 Subject: [PATCH 2/2] configure dependabot --- .github/dependabot.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..ac3a58a --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,14 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" + labels: + - "dependencies" + - "no changelog" + + - package-ecosystem: "dotnet-sdk" + directory: "/" + schedule: + interval: "monthly"