-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
consolidating firefox and chrome versions
- Loading branch information
Showing
6 changed files
with
176 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
#run locally: | ||
#carstengraef@Carstens-MBP tabsets % act -W '.github/workflows/publish.yml' -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:js-latest \ | ||
# --secret-file act.secrets.txt --container-architecture linux/amd64 | ||
|
||
|
||
name: Publish | ||
#on: | ||
# push: | ||
# branches: [ firefox-extension ] | ||
on: | ||
push: | ||
tags: | ||
- 'v*.*.*-firefox' | ||
|
||
jobs: | ||
build: | ||
name: Publish webextension | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: 'true' | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 18 | ||
- name: 'Create env file' | ||
run: | | ||
touch .env | ||
echo STAGE=PRD >> .env | ||
echo BACKEND_URL="https://tabsets-72089.web.app" >> .env | ||
echo TABSETS_PWA_URL="https://pwa.tabsets.net" >> .env | ||
- name: Build | ||
run: | | ||
yarn install | ||
npm run "build bex (publish)" | ||
- name: "web-ext build" | ||
id: web-ext-build | ||
uses: kewisch/action-web-ext@v1 | ||
with: | ||
cmd: build | ||
source: dist/bex | ||
# filename: "{name}-{version}.xpi" | ||
filename: "{name}.xpi" | ||
ignoreFiles: '[ "package.json","package-lock.json","yarn.lock" ]' | ||
|
||
- uses: trmcnvn/firefox-addon@v1 | ||
with: | ||
# uuid is only necessary when updating an existing addon, | ||
# omitting it will create a new addon | ||
uuid: '{5809ba95-274e-4fd3-a92d-5baf03026290}' | ||
xpi: web-ext-artifacts/tabsets.net.xpi | ||
manifest: dist/bex/manifest.json | ||
api-key: ${{ secrets.FIREFOX_API_KEY }} | ||
api-secret: ${{ secrets.FIREFOX_API_SECRET }} | ||
|
||
# - name: Upload & release | ||
# uses: mnao305/[email protected] | ||
# with: | ||
# file-path: dist/bex/Packaged.tabsets.net.zip | ||
# extension-id: afkknkdbgondbbfjehipnjmojndnjhjg | ||
# client-id: ${{ secrets.CLIENT_ID }} | ||
# client-secret: ${{ secrets.CLIENT_SECRET }} | ||
# refresh-token: ${{ secrets.REFRESH_TOKEN }} | ||
# publish: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,3 +78,4 @@ docs/.vitepress/cache | |
/.tabsets-backend-prd.env | ||
/.env.tmp | ||
/docs/submodules/build/ | ||
/src-bex/manifest.tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
{ | ||
"manifest_version": 3, | ||
"browser_specific_settings": { | ||
"gecko": { | ||
"id": "{5809ba95-274e-4fd3-a92d-5baf03026290}" | ||
} | ||
}, | ||
"icons": { | ||
"16": "icons/icon-16x16.png", | ||
"48": "icons/icon-48x48.png", | ||
"128": "icons/icon-128x128.png" | ||
}, | ||
"permissions": [ | ||
"storage", | ||
"tabs", | ||
"activeTab", | ||
"alarms", | ||
"scripting", | ||
"sidePanel", | ||
"contextMenus", | ||
"bookmarks" | ||
], | ||
"optional_permissions": [ | ||
"pageCapture", | ||
"notifications", | ||
"webRequest" | ||
], | ||
"host_permissions": [ | ||
"<all_urls>", | ||
"*://*/*" | ||
], | ||
"background": { | ||
"scripts": ["background.js"] | ||
}, | ||
"content_scripts": [ | ||
{ | ||
"matches": [ | ||
"*://*/*" | ||
], | ||
"js": [ | ||
"tabsets-content-script.js" | ||
] | ||
} | ||
], | ||
"content_security_policy": { | ||
"extension_pages": "script-src 'self'; object-src 'self';" | ||
}, | ||
"web_accessible_resources": [ | ||
{ | ||
"resources": [ | ||
"*" | ||
], | ||
"matches": [ | ||
"*://*/*" | ||
] | ||
} | ||
], | ||
"omnibox": { "keyword": "ts" }, | ||
"sidebar_action": { | ||
"default_icon": "icons/icon-48x48.png", | ||
"default_title" : "Tabsets", | ||
"default_panel": "www/index.html#/sidepanel" | ||
}, | ||
"commands": { | ||
"_execute_sidebar_action": { | ||
"suggested_key": { | ||
"default": "Ctrl+Shift+Period" | ||
} | ||
}, | ||
"search": { | ||
"suggested_key": { | ||
"default": "Ctrl+K", | ||
"mac": "Command+K" | ||
}, | ||
"description": "Open Search Box" | ||
}, | ||
"tabHistoryBack": { | ||
"suggested_key": { | ||
"default": "Alt+Left", | ||
"mac": "Alt+Left" | ||
}, | ||
"description": "Open last open tab" | ||
}, | ||
"tabHistoryForward": { | ||
"suggested_key": { | ||
"default": "Alt+Right", | ||
"mac": "Alt+Right" | ||
}, | ||
"description": "Forward to next tab (if available)" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters