From cb8e6a2f76ce5eac4598e1c9b4268f7cd8069a13 Mon Sep 17 00:00:00 2001 From: Rexogamer Date: Mon, 22 Apr 2024 23:16:01 +0100 Subject: [PATCH] fix(ci): enable corepack/upgrade actions --- .github/workflows/build-android.yml | 8 +++++--- .github/workflows/build-web.yml | 12 +++++++----- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-android.yml b/.github/workflows/build-android.yml index 97bd7e0..80d3e83 100644 --- a/.github/workflows/build-android.yml +++ b/.github/workflows/build-android.yml @@ -32,14 +32,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 + - name: Enable Corepack + run: corepack enable - name: Set up Node uses: actions/setup-node@v4 with: node-version: 18 cache: 'yarn' - name: Set up Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: '17' distribution: 'microsoft' @@ -57,7 +59,7 @@ jobs: mv app-x86-debug.apk RVMob-Debug-${{ github.sha }}-x86.apk working-directory: /home/runner/work/rvmob/rvmob/android/app/build/outputs/apk/debug/ - name: Upload debug APK - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: path: | /home/runner/work/rvmob/rvmob/android/app/build/outputs/apk/debug/RVMob-Debug-${{ github.sha }}-arm64-v8a.apk diff --git a/.github/workflows/build-web.yml b/.github/workflows/build-web.yml index d80da63..930da61 100644 --- a/.github/workflows/build-web.yml +++ b/.github/workflows/build-web.yml @@ -27,23 +27,25 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 + - name: Enable Corepack + run: corepack enable - name: Set up Node uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 cache: "yarn" - name: Install dependencies run: yarn install - name: Build the site run: yarn web-release - name: Set up Pages - uses: actions/configure-pages@v3 + uses: actions/configure-pages@v5 - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 with: # Upload built files path: './dist' - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v4