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
extension_id: ${{ secrets.CHROME_EXTENSION_ID }}
56
zip_file: margin-extension-chrome.zip
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
0
0
0
0
0
0
0
0
0
0
0
0
0
66
67
- name: Publish to Firefox AMO
68
continue-on-error: true
···
55
extension_id: ${{ secrets.CHROME_EXTENSION_ID }}
56
zip_file: margin-extension-chrome.zip
57
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
79
80
- name: Publish to Firefox AMO
81
continue-on-error: true