-
Notifications
You must be signed in to change notification settings - Fork 6
67 lines (63 loc) · 2.6 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: "Publish"
on:
release:
types: [released] # triggered on main branch releases
jobs:
publish_to_chrome_web_store:
name: "Publish To Chrome Web Store"
runs-on: ubuntu-latest
steps:
- name: "🛎 Checkout"
uses: actions/checkout@v4
- name: "📥 Download Latest Release Asset"
uses: ./.github/actions/download-latest-release-asset
with:
asset_prefix: "kibisis-chrome"
github_token: ${{ secrets.WRITE_REPOS_TOKEN }}
- name: "🚀 Publish"
uses: ./.github/actions/publish-to-chrome-web-store
with:
# set in the Settings > Secrets and variables > Actions > Secrets
item_id: ${{ vars.CHROME_WEB_STORE_ITEM_ID }}
client_id: ${{ secrets.CHROME_WEB_STORE_API_CLIENT_ID }}
client_secret: ${{ secrets.CHROME_WEB_STORE_API_CLIENT_SECRET }}
refresh_token: ${{ secrets.CHROME_WEB_STORE_API_REFRESH_TOKEN }}
zip_file_name: kibisis-chrome.zip
publish_to_micorsoft_edge_add_ons:
name: "Publish To Microsoft Edge Add-ons"
runs-on: ubuntu-latest
steps:
- name: "🛎 Checkout"
uses: actions/checkout@v4
- name: "📥 Download Latest Release Asset"
uses: ./.github/actions/download-latest-release-asset
with:
asset_prefix: "kibisis-edge"
github_token: ${{ secrets.WRITE_REPOS_TOKEN }}
- name: "🚀 Publish"
uses: ./.github/actions/publish-to-microsoft-edge-add-ons
with:
# set in the Settings > Secrets and variables > Actions > Secrets
access_token_url: ${{ secrets.MICROSOFT_EDGE_ADD_ONS_API_ACCESS_TOKEN_URL }}
client_id: ${{ secrets.MICROSOFT_EDGE_ADD_ONS_API_CLIENT_ID }}
client_secret: ${{ secrets.MICROSOFT_EDGE_ADD_ONS_API_CLIENT_SECRET }}
product_id: ${{ vars.MICROSOFT_EDGE_ADD_ON_PRODUCT_ID }}
zip_file_name: kibisis-edge.zip
publish_to_firefox_add_ons:
name: "Publish To Firefox Add-ons"
runs-on: ubuntu-latest
steps:
- name: "🛎 Checkout"
uses: actions/checkout@v4
- name: "📥 Download Latest Release Asset"
uses: ./.github/actions/download-latest-release-asset
with:
asset_prefix: "kibisis-firefox"
github_token: ${{ secrets.WRITE_REPOS_TOKEN }}
- name: "🚀 Publish"
uses: ./.github/actions/publish-to-firefox-add-ons
with:
addon_id: ${{ vars.FIREFOX_ADD_ONS_ID }}
jwt_issuer: ${{ secrets.FIREFOX_ADD_ONS_API_JWT_ISSUER }}
jwt_secret: ${{ secrets.FIREFOX_ADD_ONS_API_JWT_SECRET }}
zip_file_name: kibisis-firefox.zip