Write on the margins of the internet. Powered by the AT Protocol. margin.at
extension web atproto comments

add Edge Add-ons publishing to release workflow

+21 -8
+21 -8
.github/workflows/release-extension.yml
··· 55 55 extension_id: ${{ secrets.CHROME_EXTENSION_ID }} 56 56 zip_file: margin-extension-chrome.zip 57 57 58 - # - name: Publish to Edge Add-ons 59 - # uses: nicholaslee119/edge-addon-upload@master 60 - # with: 61 - # product_id: ${{ secrets.EDGE_PRODUCT_ID }} 62 - # client_id: ${{ secrets.EDGE_CLIENT_ID }} 63 - # client_secret: ${{ secrets.EDGE_CLIENT_SECRET }} 64 - # access_token_url: ${{ secrets.EDGE_ACCESS_TOKEN_URL }} 65 - # file_path: margin-extension-chrome.zip 58 + - name: Publish to Edge Add-ons 59 + continue-on-error: true 60 + run: | 61 + echo "Uploading package to Edge Add-ons..." 62 + curl \ 63 + -H "Authorization: ApiKey ${{ secrets.EDGE_API_KEY }}" \ 64 + -H "X-ClientID: ${{ secrets.EDGE_CLIENT_ID }}" \ 65 + -H "Content-Type: application/zip" \ 66 + -X POST \ 67 + -T margin-extension-chrome.zip \ 68 + -f -sS \ 69 + https://api.addons.microsoftedge.microsoft.com/v1/products/${{ secrets.EDGE_PRODUCT_ID }}/submissions/draft/package 70 + 71 + echo "Publishing submission..." 72 + curl \ 73 + -H "Authorization: ApiKey ${{ secrets.EDGE_API_KEY }}" \ 74 + -H "X-ClientID: ${{ secrets.EDGE_CLIENT_ID }}" \ 75 + -X POST \ 76 + -d '{ "notes": "New release" }' \ 77 + -f -sS \ 78 + https://api.addons.microsoftedge.microsoft.com/v1/products/${{ secrets.EDGE_PRODUCT_ID }}/submissions 66 79 67 80 - name: Publish to Firefox AMO 68 81 continue-on-error: true