Submit to Firefox Add-ons Store #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Submit to Firefox Add-ons Store" | |
on: | |
workflow_run: | |
workflows: ["Extension Release"] | |
types: | |
- completed | |
# Allow manual triggering from the GitHub Actions UI | |
workflow_dispatch: | |
jobs: | |
submit: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Compress Repository | |
run: | | |
zip -r extension-source.zip . | |
- name: Download Release Assets | |
id: download-release | |
uses: robinraju/release-downloader@v1 | |
with: | |
latest: true # Download the latest release | |
out-file-path: "assets" # Output directory for downloaded assets | |
fileName: '*' # Download all assets | |
- name: Find Extension Path | |
id: find-path | |
# Find and output the path to the extension zip | |
# Required as the release action does not support glob patterns | |
run: | | |
FIREFOX_EXT_PATH=$(find assets -name "extension-*-firefox.zip" | head -n 1) | |
echo "firefox_extension_path=$FIREFOX_EXT_PATH" >> $GITHUB_OUTPUT | |
- name: Firefox Web Store Publish | |
uses: browser-actions/[email protected] | |
with: | |
addon-id: ${{ secrets.FIREFOX_EXTENSION_ID }} | |
addon-path: ${{ steps.find-path.outputs.firefox_extension_path }} | |
source-path: "extension-source.zip" | |
license: "MIT" | |
approval-note: | | |
The source code and build instructions are available at | |
https://github.com/csfloat/extension?tab=readme-ov-file#how-to-build-release. | |
release-note: | | |
Learn more about release ${{ steps.download-release.outputs.release_name }} by visiting the [GitHub Release](https://github.com/csfloat/extension/releases/tag/${{ steps.download-release.outputs.tag_name }}). | |
auth-api-issuer: ${{ secrets.AUTH_API_ISSUER }} | |
auth-api-secret: ${{ secrets.AUTH_API_SECRET }} |