-
Notifications
You must be signed in to change notification settings - Fork 37
50 lines (44 loc) · 1.97 KB
/
submit_firefox.yml
File metadata and controls
50 lines (44 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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@v6
- 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/release-firefox-addon@v0.2.1
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 }}