Merge pull request #2170 from mozilla/foo

No double zip files in the github action artifacts
This commit is contained in:
Andrea Marchesini 2021-10-26 14:49:19 +02:00 committed by GitHub
commit 0009a9e964
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 3 deletions

View file

@ -21,10 +21,18 @@ jobs:
- name: Create the package
shell: bash
run: |
./bin/build-addon.sh
./bin/build-addon.sh nightly.zip
- name: Repackaging
shell: bash
run: |
cd src/web-ext-artifacts
mkdir nightly
cd nightly
unzip ../nightly.zip
- name: Uploading
uses: actions/upload-artifact@v1
with:
name: ${{matrix.config.name}} Build
path: src/web-ext-artifacts
path: src/web-ext-artifacts/nightly

View file

@ -18,4 +18,9 @@ npm test
print Y "Creating the final package..."
cd src || die
$(npm bin)/web-ext build --overwrite-dest || die
if [[ $# -gt 0 ]]; then
EXTRA_PARAMS="--filename $1"
fi
$(npm bin)/web-ext build --overwrite-dest $EXTRA_PARAMS || die