tangled
alpha
login
or
join now
margin.at
/
margin
87
fork
atom
Write on the margins of the internet. Powered by the AT Protocol.
margin.at
extension
web
atproto
comments
87
fork
atom
overview
issues
4
pulls
1
pipelines
add Edge Add-ons publishing to release workflow
scanash.com
1 month ago
bca1ab40
21cb43f0
+21
-8
1 changed file
expand all
collapse all
unified
split
.github
workflows
release-extension.yml
+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
58
-
# - name: Publish to Edge Add-ons
59
59
-
# uses: nicholaslee119/edge-addon-upload@master
60
60
-
# with:
61
61
-
# product_id: ${{ secrets.EDGE_PRODUCT_ID }}
62
62
-
# client_id: ${{ secrets.EDGE_CLIENT_ID }}
63
63
-
# client_secret: ${{ secrets.EDGE_CLIENT_SECRET }}
64
64
-
# access_token_url: ${{ secrets.EDGE_ACCESS_TOKEN_URL }}
65
65
-
# file_path: margin-extension-chrome.zip
58
58
+
- name: Publish to Edge Add-ons
59
59
+
continue-on-error: true
60
60
+
run: |
61
61
+
echo "Uploading package to Edge Add-ons..."
62
62
+
curl \
63
63
+
-H "Authorization: ApiKey ${{ secrets.EDGE_API_KEY }}" \
64
64
+
-H "X-ClientID: ${{ secrets.EDGE_CLIENT_ID }}" \
65
65
+
-H "Content-Type: application/zip" \
66
66
+
-X POST \
67
67
+
-T margin-extension-chrome.zip \
68
68
+
-f -sS \
69
69
+
https://api.addons.microsoftedge.microsoft.com/v1/products/${{ secrets.EDGE_PRODUCT_ID }}/submissions/draft/package
70
70
+
71
71
+
echo "Publishing submission..."
72
72
+
curl \
73
73
+
-H "Authorization: ApiKey ${{ secrets.EDGE_API_KEY }}" \
74
74
+
-H "X-ClientID: ${{ secrets.EDGE_CLIENT_ID }}" \
75
75
+
-X POST \
76
76
+
-d '{ "notes": "New release" }' \
77
77
+
-f -sS \
78
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