fix: update publish step to use current directory for extension signing
Some checks failed
CI / build-and-publish (push) Failing after 35s
Some checks failed
CI / build-and-publish (push) Failing after 35s
This commit is contained in:
@@ -59,17 +59,11 @@ jobs:
|
|||||||
- name: Publish to Mozilla Add-ons
|
- name: Publish to Mozilla Add-ons
|
||||||
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
|
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
|
||||||
run: |
|
run: |
|
||||||
# Find the built extension file (zip/xpi) in dist/
|
|
||||||
EXT_FILE=$(find dist -maxdepth 1 -type f \( -name "*.zip" -o -name "*.xpi" \) | head -n 1)
|
|
||||||
if [ -z "$EXT_FILE" ]; then
|
|
||||||
echo "No extension package found in dist/"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
npx web-ext sign \
|
npx web-ext sign \
|
||||||
--api-key ${{ secrets.MOZILLA_ADDON_API_KEY }} \
|
--api-key ${{ secrets.MOZILLA_ADDON_API_KEY }} \
|
||||||
--api-secret ${{ secrets.MOZILLA_ADDON_API_SECRET }} \
|
--api-secret ${{ secrets.MOZILLA_ADDON_API_SECRET }} \
|
||||||
--channel listed \
|
--channel listed \
|
||||||
--source-dir "$EXT_FILE" \
|
--source-dir . \
|
||||||
--artifacts-dir dist
|
--artifacts-dir dist
|
||||||
|
|
||||||
- name: Push changes
|
- name: Push changes
|
||||||
|
|||||||
Reference in New Issue
Block a user