From 5b0a587cfb0913da3b76e0f632ac972dd9011ed1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tau=20G=C3=A4rtli?= Date: Tue, 30 Apr 2024 12:02:05 +0200 Subject: [PATCH] Update actions --- .github/workflows/build.yml | 22 +++++++++---------- .github/workflows/docs.yml | 12 +++++----- .github/workflows/publish-nightly-package.yml | 4 ++-- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 67756d8d..013eb12b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,22 +20,22 @@ jobs: SystemLinqAsyncVersion: ${{matrix.systemLinqAsync}} runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 - - uses: actions/setup-dotnet@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-dotnet@v4 name: Install Current .NET SDK - - uses: actions/setup-dotnet@v3 + - uses: actions/setup-dotnet@v4 name: 'Install .NET SDK 3.1' with: dotnet-version: '3.1.x' - - uses: actions/setup-dotnet@v3 + - uses: actions/setup-dotnet@v4 name: 'Install .NET SDK 5.0' with: dotnet-version: '5.0.x' - - uses: actions/setup-dotnet@v3 + - uses: actions/setup-dotnet@v4 name: 'Install .NET SDK 7.0' with: dotnet-version: '7.0.x' - - uses: actions/setup-dotnet@v3 + - uses: actions/setup-dotnet@v4 name: 'Install .NET SDK 6.0' with: dotnet-version: '6.0.x' @@ -51,8 +51,8 @@ jobs: name: Trimming and AOT Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-dotnet@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-dotnet@v4 name: Install Current .NET SDK - name: Run trimming test run: dotnet publish -c Release Funcky.TrimmingTest -r linux-x64 --self-contained /p:TreatWarningsAsErrors=true @@ -63,12 +63,12 @@ jobs: name: Generate NuGet Packages runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-dotnet@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-dotnet@v4 name: Install Current .NET SDK - name: Generate NuGet Packages run: dotnet pack --output nupkg - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: success() && github.ref == 'refs/heads/main' with: name: nupkg diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 929041b2..09f4ce0f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -14,14 +14,14 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-dotnet@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-dotnet@v4 name: Install Current .NET SDK - name: Setup mdBook - uses: peaceiris/actions-mdbook@v1 + uses: peaceiris/actions-mdbook@v2 with: mdbook-version: '0.4.2' - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: '16' - run: yarn install @@ -32,7 +32,7 @@ jobs: - name: Build Website and Documentation run: dotnet fsi Website/build.fsx - name: Upload GitHub Pages Artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 deploy_pages: needs: build @@ -50,4 +50,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/publish-nightly-package.yml b/.github/workflows/publish-nightly-package.yml index 7d36db7b..aa4a8e78 100644 --- a/.github/workflows/publish-nightly-package.yml +++ b/.github/workflows/publish-nightly-package.yml @@ -9,8 +9,8 @@ jobs: publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-dotnet@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-dotnet@v4 name: Install Current .NET SDK - name: Pack Packages run: dotnet pack Funcky/Funcky.csproj --output nupkg --version-suffix "nightly.$(git rev-parse --short "${{github.sha}}")"