Skip to content

Commit

Permalink
updated publish.yml to bpp and added CODEOWNERS
Browse files Browse the repository at this point in the history
  • Loading branch information
eric2788 committed Mar 10, 2024
1 parent 981672f commit 4db0a24
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 99 deletions.
68 changes: 0 additions & 68 deletions .github/workflows/publish-bpp.yml

This file was deleted.

57 changes: 27 additions & 30 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Publish Extensions

on:
workflow_dispatch:
inputs:
dry-run:
description: 'dry run mode, will upload to the store but not publish'
type: boolean
description: 'dry run mode, will upload to the store but not publish and turn on verbose logging'
required: false
type: boolean
default: true

jobs:
Expand Down Expand Up @@ -33,39 +34,35 @@ jobs:
with:
name: ${{ matrix.browser }}-mv3
path: build/
publish-chrome:
publish:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
name: chrome-mv3
path: build/
- name: Upload Extension
uses: mnao305/[email protected]
with:
file-path: build/chrome-mv3-prod.zip
extension-id: nhomlepkjglilcahfcfnggebkaabeiog
client-id: ${{ secrets.CHROME_CLIENT_ID }}
client-secret: ${{ secrets.CHROME_CLIENT_SECRET }}
refresh-token: ${{ secrets.CHROME_REFRESH_TOKEN }}
publish: ${{ !inputs.dry-run }}
publish-edge:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
name: edge-mv3
path: build/
- name: Upload Extension
uses: wdzeng/edge-addon@v1
- name: Browser Platform Publish
uses: PlasmoHQ/[email protected]
with:
product-id: ${{ secrets.EDGE_PRODUCT_ID }}
zip-path: build/edge-mv3-prod.zip
client-id: ${{ secrets.EDGE_CLIENT_ID }}
client-secret: ${{ secrets.EDGE_CLIENT_SECRET }}
access-token-url: ${{ secrets.EDGE_ACCESS_TOKEN_URL }}
upload-only: ${{ inputs.dry-run }}
verbose: ${{ inputs.dry-run }}
keys: |
{
"$schema": "https://raw.githubusercontent.com/plasmo-corp/bpp/v3/keys.schema.json",
"chrome": {
"zip": "build/chrome-mv3/chrome-mv3-prod.zip",
"clientId": "${{ secrets.CHROME_CLIENT_ID }}",
"clientSecret": "${{ secrets.CHROME_CLIENT_SECRET }}",
"refreshToken": "${{ secrets.CHROME_REFRESH_TOKEN }}",
"extId": "nhomlepkjglilcahfcfnggebkaabeiog",
"uploadOnly": ${{ inputs.dry-run }}
},
"edge": {
"zip": "build/edge-mv3/edge-mv3-prod.zip",
"clientId": "${{ secrets.EDGE_CLIENT_ID }}",
"clientSecret": "${{ secrets.EDGE_CLIENT_SECRET}}",
"productId": "${{ secrets.EDGE_PRODUCT_ID }}",
"accessTokenUrl": "${{ secrets.EDGE_ACCESS_TOKEN_URL }}",
"uploadOnly": ${{ inputs.dry-run }}
}
}
1 change: 1 addition & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @eric2788
2 changes: 1 addition & 1 deletion tests/pages/settings.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ test('測試設定數據從MV2遷移', async ({ serviceWorker, settings: page })
"tongchuanMans": ["123456789"],
"tongchuanBlackList": ["987654321"],
"subtitleColor": "#222222",
"blacklistRooms": ["24689", "98624"],
"blacklistRooms": ["24689", "98624", "13579", "97531"],
"useAsWhitelist": true,
"subtitleSize": 26,
"firstSubtitleSize": 28,
Expand Down

0 comments on commit 4db0a24

Please sign in to comment.