Comment archiver des fichiers dans un artefact pour les actions de workflow GitHub afin de corriger cet avertissement ?
Comment archiver des fichiers dans un artefact pour les actions de workflow GitHub afin de corriger cet avertissement ?
Comment archiver des fichiers dans un artefact pour les actions de workflow GitHub afin de corriger cet avertissement ?
Re: Comment archiver des fichiers dans un artefact pour les actions de workflow GitHub afin de corriger cet avertissement ?
J'ai eu ce problème en déployant une application node sur Azure App Services.
Je l'ai résolu en ajoutant une étape zip et une étape unzip.
L'étape zip est
```
- name: Zip artifact for deployment
run: zip release.zip ./* -r
```
L'étape unzip est
```
- name: unzip artifact for deployment
run: unzip release.zip
```
Ajoutez l'étape zip après l'étape de build et avant l'étape Upload artifact comme ceci
```
- name: npm install, build, and test
run: |
npm install
npm run build --if-present
npm run test --if-present
- name: Zip artifact for deployment
run: zip release.zip ./* -r
- name: Upload
Je l'ai résolu en ajoutant une étape zip et une étape unzip.
L'étape zip est
```
- name: Zip artifact for deployment
run: zip release.zip ./* -r
```
L'étape unzip est
```
- name: unzip artifact for deployment
run: unzip release.zip
```
Ajoutez l'étape zip après l'étape de build et avant l'étape Upload artifact comme ceci
```
- name: npm install, build, and test
run: |
npm install
npm run build --if-present
npm run test --if-present
- name: Zip artifact for deployment
run: zip release.zip ./* -r
- name: Upload