From cd1803e35e212ea5c12ae5d7fb68834c3c2bc74d Mon Sep 17 00:00:00 2001 From: Vighnesh-V Date: Fri, 13 Sep 2024 13:09:42 -0700 Subject: [PATCH] upgrade `release.yml` to upload-artifact@v4 (#1410) Github has deprecated `v1` and `v2` of `actions/upload-artifact` which causes occassional CI failures and will affect our ability to make new releases in the future. This PR updates the version used in `release.yml`. --- .github/workflows/release.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7d8a5c44..1024728c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,16 +23,18 @@ jobs: run: cmake . -DCMAKE_BUILD_TYPE=Release - name: build run: cmake --build . --target Luau.Repl.CLI Luau.Analyze.CLI Luau.Compile.CLI --config Release -j 2 - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: matrix.os.name != 'windows' with: name: luau-${{matrix.os.name}} path: luau* - - uses: actions/upload-artifact@v2 + overwrite: true + - uses: actions/upload-artifact@v4 if: matrix.os.name == 'windows' with: name: luau-${{matrix.os.name}} path: Release\luau*.exe + overwrite: true web: runs-on: ubuntu-latest @@ -52,7 +54,8 @@ jobs: source emsdk/emsdk_env.sh emcmake cmake . -DLUAU_BUILD_WEB=ON -DCMAKE_BUILD_TYPE=Release make -j2 Luau.Web - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: Luau.Web.js path: Luau.Web.js + overwrite: true