Skip to content

Commit

Permalink
Fix packaging the extension source
Browse files Browse the repository at this point in the history
  • Loading branch information
filips123 committed Sep 7, 2024
1 parent 961d813 commit c695331
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/extension.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,19 @@ jobs:
echo "VERSION=$VERSION" >> $GITHUB_ENV
sed -i "s/\"version\": \"0.0.0\"/\"version\": \"$VERSION\"/g" package.json
sed -i "s/\"version\": \"0.0.0\"/\"version\": \"$VERSION\"/g" src/manifest.json
else
echo "VERSION=0.0.0" >> $GITHUB_ENV
fi
- name: Package the extension source
run: zip -r dist/firefoxpwa-${VERSION}-source.zip .
run: 7z a "dist/firefoxpwa-${{ env.VERSION }}-source.zip" "." -bd -mx9 -xr@"../.gitignore"

- name: Upload the extension source
uses: actions/upload-artifact@v4
with:
name: firefoxpwa-extension-source
path: extension/dist/firefoxpwa-${{ env.VERSION }}-source.zip
compression-level: 0

- name: Install Node.js
uses: actions/setup-node@v4
Expand All @@ -99,7 +102,8 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: firefoxpwa-extension-compiled
path: extension/dist/firefoxpwa-${{ env.VERSION }}-compiled.zip
path: extension/dist/firefoxpwa-*-compiled.zip
compression-level: 0

# Add auto-publishing to AMO once web-ext supports submitting extensions from ZIP files
# This also includes uploading source code and AMO release notes
Expand Down

0 comments on commit c695331

Please sign in to comment.