From 504a5f272f86aedce63ed0628d06ba846b4e4317 Mon Sep 17 00:00:00 2001 From: Christoph Knittel Date: Sun, 10 Mar 2024 10:07:48 +0100 Subject: [PATCH] Upgrade Github actions to v4 to fix deprecation warnings --- .github/workflows/ci.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ad23c397f..9009422c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,10 +45,10 @@ jobs: git config --global core.autocrlf false git config --global core.eol lf - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Cache OCaml's opam - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.opam key: ${{matrix.os}}-rescript-vscode-v4 @@ -59,7 +59,7 @@ jobs: ocaml-compiler: 4.14.x - name: Use Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 16 registry-url: 'https://registry.npmjs.org' @@ -89,7 +89,7 @@ jobs: mv rescript-tools.exe ${{matrix.artifact-folder}} tar -cvf binary.tar ${{matrix.artifact-folder}} - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: ${{matrix.os}} path: binary.tar @@ -99,10 +99,10 @@ jobs: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 16 registry-url: 'https://registry.npmjs.org' @@ -111,7 +111,7 @@ jobs: - run: npm run compile - name: Download MacOS binary - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: macos-13 path: binaries @@ -119,7 +119,7 @@ jobs: working-directory: binaries - name: Download MacOS ARM binary - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: macos-14 path: binaries @@ -127,7 +127,7 @@ jobs: working-directory: binaries - name: Download Linux binary - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: ubuntu-20.04 path: binaries @@ -135,7 +135,7 @@ jobs: working-directory: binaries - name: Download Windows binary - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: windows-latest path: binaries @@ -191,19 +191,19 @@ jobs: if: startsWith(github.ref, 'refs/tags/') run: npx vsce package -o rescript-vscode-${{ steps.tag_name.outputs.tag }}.vsix ${{ steps.tag_name.outputs.tag }} --no-git-tag-version - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: github.ref != 'refs/heads/master' with: name: rescript-vscode-${{ steps.vars.outputs.sha_short }}.vsix path: rescript-vscode-${{ steps.vars.outputs.sha_short }}.vsix - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: github.ref == 'refs/heads/master' with: name: rescript-vscode-latest-master.vsix path: rescript-vscode-latest-master.vsix - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: startsWith(github.ref, 'refs/tags/') with: name: rescript-vscode-${{ steps.tag_name.outputs.tag }}.vsix