Skip to content

Commit

Permalink
Update firefox-addon-upload.yml
Browse files Browse the repository at this point in the history
Changed from Self to AMO
  • Loading branch information
kenhendricks00 authored Oct 19, 2024
1 parent 8cf1bdd commit 3c36b33
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/firefox-addon-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ jobs:
- name: Get release information
id: release_info
run: |
echo "::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}"
echo "::set-output name=VERSION::${GITHUB_REF/refs/tags/}"
- name: Install web-ext
run: npm install --global web-ext

- name: Build and Sign Firefox Extension
run: |
web-ext sign --source-dir . \
--artifacts-dir web-ext-artifacts \
--api-key ${{ secrets.AMO_API_KEY }} \
--api-secret ${{ secrets.AMO_API_SECRET }} \
--channel unlisted \
Expand All @@ -53,12 +54,12 @@ jobs:
prerelease: false
body: "Release version ${{ steps.release_info.outputs.VERSION }} of the Firefox extension."

- name: Upload Firefox package
- name: Upload Firefox package to GitHub Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: web-ext-artifacts/your-extension.xpi
asset_path: web-ext-artifacts/*.xpi # Use the signed extension from the artifacts
asset_name: your-extension-${{ steps.release_info.outputs.VERSION }}.xpi
asset_content_type: application/x-xpinstall

0 comments on commit 3c36b33

Please sign in to comment.