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`.
This commit is contained in:
Vighnesh-V 2024-09-13 13:09:42 -07:00 committed by GitHub
parent b765d7bafd
commit cd1803e35e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,16 +23,18 @@ jobs:
run: cmake . -DCMAKE_BUILD_TYPE=Release run: cmake . -DCMAKE_BUILD_TYPE=Release
- name: build - name: build
run: cmake --build . --target Luau.Repl.CLI Luau.Analyze.CLI Luau.Compile.CLI --config Release -j 2 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' if: matrix.os.name != 'windows'
with: with:
name: luau-${{matrix.os.name}} name: luau-${{matrix.os.name}}
path: luau* path: luau*
- uses: actions/upload-artifact@v2 overwrite: true
- uses: actions/upload-artifact@v4
if: matrix.os.name == 'windows' if: matrix.os.name == 'windows'
with: with:
name: luau-${{matrix.os.name}} name: luau-${{matrix.os.name}}
path: Release\luau*.exe path: Release\luau*.exe
overwrite: true
web: web:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -52,7 +54,8 @@ jobs:
source emsdk/emsdk_env.sh source emsdk/emsdk_env.sh
emcmake cmake . -DLUAU_BUILD_WEB=ON -DCMAKE_BUILD_TYPE=Release emcmake cmake . -DLUAU_BUILD_WEB=ON -DCMAKE_BUILD_TYPE=Release
make -j2 Luau.Web make -j2 Luau.Web
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v4
with: with:
name: Luau.Web.js name: Luau.Web.js
path: Luau.Web.js path: Luau.Web.js
overwrite: true