ci(linux): fix artifact usage [skip ci]

This commit is contained in:
Baptiste Augrain 2024-02-21 20:03:44 +01:00
parent 158d27571f
commit a4ed6272bb
3 changed files with 7 additions and 11 deletions

View file

@ -98,13 +98,13 @@ jobs:
- name: Compress vscode artifact
run: |
tar -cz --exclude='.build/node' --exclude='.git' --exclude='**/node_modules' -f vscode.tar.gz vscode
tar -c --exclude='.build/node' --exclude='.git' --exclude='**/node_modules' -f vscode.tar vscode
- name: Upload vscode artifact
uses: actions/upload-artifact@v3
with:
name: vscode.tar.gz
path: ./vscode.tar.gz
name: vscode.tar
path: ./vscode.tar
retention-days: ${{ needs.check.outputs.SHOULD_DEPLOY == 'yes' && 30 || 1 }}
build:
@ -159,7 +159,7 @@ jobs:
- name: Download vscode artifact
uses: actions/download-artifact@v3
with:
name: vscode.tar.gz
name: vscode.tar
- name: Build
env:
@ -234,7 +234,7 @@ jobs:
- name: Download vscode artifact
uses: actions/download-artifact@v3
with:
name: vscode.tar.gz
name: vscode.tar
if: env.SHOULD_BUILD_REH != 'no' || github.event.inputs.generate_assets == 'true'
- name: Build

View file

@ -7,9 +7,7 @@ if [[ "${CI_BUILD}" == "no" ]]; then
exit 1
fi
if [[ -f "./vscode.tar.gz" ]]; then
tar -xfz ./vscode.tar.gz .
fi
tar -xf ./vscode.tar .
cd vscode || { echo "'vscode' dir not found"; exit 1; }

View file

@ -7,9 +7,7 @@ if [[ "${CI_BUILD}" == "no" ]]; then
exit 1
fi
if [[ -f "./vscode.tar.gz" ]]; then
tar -xfz ./vscode.tar.gz .
fi
tar -xf ./vscode.tar .
cd vscode || { echo "'vscode' dir not found"; exit 1; }