From bba6a83a9f583cc15e1bd9cc080f0d56396d9e33 Mon Sep 17 00:00:00 2001 From: hwndmaster Date: Mon, 16 Sep 2024 17:53:26 +0200 Subject: [PATCH] Github Actions update --- .github/workflows/cd.yml | 8 ++++---- .github/workflows/ci.yml | 13 ++++--------- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 468c722..853e090 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -13,11 +13,11 @@ jobs: DOTNET_CLI_TELEMETRY_OPTOUT: true steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 6.0.x + dotnet-version: 8.0.x - name: Restore dependencies run: dotnet restore --runtime "win-x64" - name: Build @@ -39,7 +39,7 @@ jobs: 7z a -tzip "${release_name_sc}.zip" "./${release_name_sc}/*" rm -r "$release_name_sc" - name: Publish - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: files: | ${release_name}.zip diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e63317b..3180198 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,21 +15,16 @@ jobs: DOTNET_CLI_TELEMETRY_OPTOUT: true steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 6.0.x + dotnet-version: 8.0.x - name: Restore dependencies run: | - dotnet nuget add source https://nuget.pkg.github.com/hwndmaster/index.json -n github -u hwndmaster -p ${{ secrets.PRIVATE_PKG_TOKEN }} --store-password-in-clear-text + dotnet nuget add source https://nuget.pkg.github.com/hwndmaster/index.json -n github -u hwndmaster -p ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text dotnet restore - name: Build run: dotnet build --no-restore - name: Test run: dotnet test --no-build --verbosity normal - - name: Cleanup - if: always() - continue-on-error: true - run: | - dotnet nuget remove source github \ No newline at end of file