dev #5
|
@ -129,4 +129,33 @@ jobs:
|
||||||
--api-secret ${{ secrets.FIREFOX_API_SECRET }} \
|
--api-secret ${{ secrets.FIREFOX_API_SECRET }} \
|
||||||
--channel listed
|
--channel listed
|
||||||
|
|
||||||
|
publish-to-edge-addons:
|
||||||
|
name: 发布至 Edge 附加组件商店
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build-for-chrome
|
||||||
|
# 仅在 main 分支上执行发布
|
||||||
|
if: gitea.ref == 'refs/heads/main'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: 下载构建工件
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: chrome-extension
|
||||||
|
path: dist/
|
||||||
|
|
||||||
|
- name: 压缩为 ZIP 文件
|
||||||
|
run: |-
|
||||||
|
cd dist && zip -r ../msrmod-edge.zip . && cd ..
|
||||||
|
|
||||||
|
- name: 设置 Node.js
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: "22"
|
||||||
|
|
||||||
|
- name: 上传扩展程序到 Edge Addons
|
||||||
|
uses: wdzeng/edge-addon@v2
|
||||||
|
with:
|
||||||
|
product-id: d63fd5c5-baba-4fcb-95c8-f11c161f9878
|
||||||
|
zip-path: msrmod-edge.zip
|
||||||
|
api-key: ${{ secrets.EDGE_CLIENT_SECRET }}
|
||||||
|
client-id: ${{ secrets.EDGE_CLIENT_ID }}
|
Loading…
Reference in New Issue
Block a user