Skip to content

Commit

Permalink
Add publish to Microsoft CI Github Action (#1314)
Browse files Browse the repository at this point in the history
* Add publish to Microsoft CI

* Test workflow by triggering on push

* Remove maxAttempt

* Use chrome zip for testing

* Testing: hardcode tag name

* Remove test code

* Remove orphaned result

* Remove edge dev build
  • Loading branch information
jamesmaa authored Aug 20, 2024
1 parent f78e767 commit d8a1883
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish-edge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: publish-edge
on: workflow_dispatch
permissions:
contents: read
jobs:
upload-on-webstore:
runs-on: ubuntu-latest
environment: cd
outputs:
result: ${{ steps.webStorePublish.outcome }}
permissions:
actions: write
steps:
- uses: robinraju/release-downloader@a96f54c1b5f5e09e47d9504526e96febd949d4c2 # [email protected]
with:
tag: ${{ github.ref_name }}
fileName: "*"

- name: Publish on Microsoft Edge Addons
uses: wdzeng/edge-addon@v1
id: webStorePublish
with:
product-id: 18e6c4cd-6383-4f38-95e9-92a629f60817
zip-path: yomitan-edge.zip
client-id: ${{ secrets.EDGE_CLIENT_ID }}
client-secret: ${{ secrets.EDGE_CLIENT_SECRET }}
access-token-url: ${{ secrets.EDGE_ACCESS_TOKEN_URL }}
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,9 @@ jobs:
workflow: publish-firefox
token: ${{ secrets.GITHUB_TOKEN }}
wait-for-completion: false

- name: Dispatch publish-edge
uses: aurelien-baudet/workflow-dispatch@3133c5d135c7dbe4be4f9793872b6ef331b53bc7 # pin@v2
with:
workflow: publish-edge
wait-for-completion: false
8 changes: 8 additions & 0 deletions dev/data/manifest-variants.json
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,14 @@
"js/background/offscreen.js",
"js/background/offscreen-main.js"
]
},
{
"name": "edge",
"inherit": "base",
"fileName": "yomitan-edge.zip",
"excludeFiles": [
"background.html"
]
}
]
}

0 comments on commit d8a1883

Please sign in to comment.