mirror of
https://github.com/SoPat712/videospeed.git
synced 2026-04-27 14:42:51 -04:00
Merge main: fix beta signing via AMO unlisted
This commit is contained in:
@@ -20,22 +20,28 @@ jobs:
|
|||||||
- name: Lint
|
- name: Lint
|
||||||
run: web-ext lint
|
run: web-ext lint
|
||||||
|
|
||||||
# Build & release steps only run on tags (not dev branch CI pushes)
|
# Beta tag (v*-beta) → Sign as unlisted on AMO, attach signed XPI to GitHub Prerelease
|
||||||
- name: Build XPI
|
# Firefox blocks all unsigned XPIs, even for self-hosted installs — unlisted signing is required
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
- name: Sign XPI via AMO (unlisted, beta)
|
||||||
run: web-ext build --overwrite-dest
|
if: contains(github.ref_name, '-beta')
|
||||||
|
run: |
|
||||||
|
web-ext sign \
|
||||||
|
--api-key ${{ secrets.FIREFOX_API_KEY }} \
|
||||||
|
--api-secret ${{ secrets.FIREFOX_API_SECRET }} \
|
||||||
|
--source-dir . \
|
||||||
|
--artifacts-dir web-ext-artifacts \
|
||||||
|
--channel unlisted
|
||||||
|
|
||||||
- name: Rename XPI
|
- name: Get signed XPI path (beta)
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: contains(github.ref_name, '-beta')
|
||||||
id: xpi
|
id: xpi
|
||||||
run: |
|
run: |
|
||||||
FILE=$(ls web-ext-artifacts/*.zip | head -n 1)
|
FILE=$(ls web-ext-artifacts/*.xpi | head -n 1)
|
||||||
XPI="web-ext-artifacts/speeder-${{ github.ref_name }}.xpi"
|
XPI="web-ext-artifacts/speeder-${{ github.ref_name }}.xpi"
|
||||||
mv "$FILE" "$XPI"
|
mv "$FILE" "$XPI"
|
||||||
echo "file=$XPI" >> $GITHUB_OUTPUT
|
echo "file=$XPI" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
# Beta tag (v*-beta) → GitHub Prerelease with XPI for self-hosting
|
- name: Create GitHub Prerelease (beta)
|
||||||
- name: Create GitHub Release (beta)
|
|
||||||
if: contains(github.ref_name, '-beta')
|
if: contains(github.ref_name, '-beta')
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
@@ -44,7 +50,7 @@ jobs:
|
|||||||
files: ${{ steps.xpi.outputs.file }}
|
files: ${{ steps.xpi.outputs.file }}
|
||||||
prerelease: true
|
prerelease: true
|
||||||
body: |
|
body: |
|
||||||
Beta build — manual installation only.
|
Beta build — signed for self-hosted manual installation.
|
||||||
|
|
||||||
### Installation Instructions
|
### Installation Instructions
|
||||||
1. Download the `.xpi` file
|
1. Download the `.xpi` file
|
||||||
|
|||||||
Reference in New Issue
Block a user