Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Package Extension

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Package extension
run: zip -r extension.zip . -x ".git/*" ".github/*"

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: extension
path: extension.zip
26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish to Chrome Web Store

on:
push:
tags:
- '*'

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Package extension
run: zip -r extension.zip . -x ".git/*" ".github/*"

- name: Publish to Chrome Web Store
uses: w3c-actions/chrome-extension-upload@v1
with:
extension-id: ${{ secrets.CHROME_EXTENSION_ID }}
client-id: ${{ secrets.CHROME_CLIENT_ID }}
client-secret: ${{ secrets.CHROME_CLIENT_SECRET }}
refresh-token: ${{ secrets.CHROME_REFRESH_TOKEN }}
zip-file: extension.zip
31 changes: 11 additions & 20 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,19 @@
"short_name": "Github Omni",
"description": "Github-powered omnibox for chrome!",
"version": "1.8.1",
"manifest_version": 2,
"manifest_version": 3,
"homepage_url": "https://github.com/ProLoser/Github-Omnibox",
"options_page": "help.html",
"omnibox": { "keyword": "gh" },
"permissions": [
"tabs",
"https://github.com/login/oauth/access_token",
"identity",
"storage",
"history"
],
"host_permissions": [
"https://github.com/",
"https://api.github.com/"
],
"icons": {
"114": "images/apple-touch-icon-114.png",
"144": "images/apple-touch-icon-144.png",
Expand All @@ -21,21 +24,7 @@
"512": "images/fluidicon.png"
},
"background": {
"scripts": [
"lib/underscore-min.js",
"oauth2/oauth2.js",
"src/Defer.js",
"src/Steps.js",
"src/StepsManager.js",
"src/patterns/help.js",
"src/patterns/my.js",
"src/patterns/new.js",
"src/patterns/repoActions.js",
"src/patterns/userActions.js",
"src/patterns/gist.js",
"src/Omni.js",
"background.js"
]
"service_worker": "service-worker.js"
},
"content_scripts": [
{
Expand All @@ -56,7 +45,9 @@
}
],
"web_accessible_resources": [
"oauth2/oauth2.html",
"help.html"
{
"resources": ["oauth2/oauth2.html", "help.html"],
"matches": ["<all_urls>"]
}
]
}
Loading