Skip to content

Commit

Permalink
Prepare for release
Browse files Browse the repository at this point in the history
- Updated Uli repo url in github workflows
- Updated github actions checkout version in github workflows
- Modified firefox publish job id in github workflows
- Updated chrome and firefox extension version in manifest
- Removed localhost from CSP in manifest for production
- Added plugin dev CSP instructions to readme
  • Loading branch information
duggalsu authored and dennyabrain committed Jul 19, 2023
1 parent 8a4b605 commit a02a454
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-on-chrome.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
runs-on: "ubuntu-latest"
environment:
name: main
url: "https://github.com/tattle-made/OGBV/releases"
url: "https://github.com/tattle-made/Uli/releases"

steps:
- name: "Checkout Development Branch"
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: main

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-on-firefox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ name: "Publish on Firefox"
on: workflow_dispatch

jobs:
chrome-publish:
firefox-publish:
name: "Pre Release Extension"
runs-on: "ubuntu-latest"
environment:
name: development
url: "https://github.com/tattle-made/OGBV/releases"
url: "https://github.com/tattle-made/Uli/releases"

steps:
- name: "Checkout Development Branch"
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: main

Expand Down
5 changes: 4 additions & 1 deletion browser-extension/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ docker compose up
```
You should now see database migration in the logs. The `api-server` will be running now.


For local plugin development, add the following two entries to the `connect-src` in the manifest's `content_security_policy`:
```
http://localhost:3000 ws://localhost
```

To run the plugin development server, run `cd plugin` and then the following :

Expand Down
4 changes: 2 additions & 2 deletions browser-extension/plugin/manifest.firefox.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"manifest_version": 2,
"name": "uli",
"description": "Moderate your Twitter Feed",
"version": "0.1.10",
"version": "0.1.12",
"author": "tattlemade|cis",
"content_security_policy": "default-src 'none'; connect-src http://localhost:3000 https://ogbv-plugin.tattle.co.in/ https://uli-media.tattle.co.in/; font-src https://fonts.gstatic.com; object-src 'none'; script-src 'self' ; style-src https://fonts.googleapis.com 'self' 'unsafe-inline'; img-src https://uli-media.tattle.co.in/; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; report-uri 'none';",
"content_security_policy": "default-src 'none'; connect-src https://ogbv-plugin.tattle.co.in/ https://uli-media.tattle.co.in/; font-src https://fonts.gstatic.com; object-src 'none'; script-src 'self' ; style-src https://fonts.googleapis.com 'self' 'unsafe-inline'; img-src https://uli-media.tattle.co.in/; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; report-uri 'none';",
"permissions": [
"storage",
"webRequest",
Expand Down
4 changes: 2 additions & 2 deletions browser-extension/plugin/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"manifest_version": 3,
"name": "uli",
"description": "Moderate your Twitter Feed",
"version": "0.1.11",
"version": "0.1.12",
"author": "tattlemade|cis",
"content_security_policy": {
"extension_pages": "default-src 'none'; connect-src http://localhost:3000 https://ogbv-plugin.tattle.co.in/ https://uli-media.tattle.co.in/; font-src https://fonts.gstatic.com; object-src 'none'; script-src 'self'; style-src https://fonts.googleapis.com 'self' 'unsafe-inline'; img-src https://uli-media.tattle.co.in/; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; report-uri 'none';"
"extension_pages": "default-src 'none'; connect-src https://ogbv-plugin.tattle.co.in/ https://uli-media.tattle.co.in/; font-src https://fonts.gstatic.com; object-src 'none'; script-src 'self'; style-src https://fonts.googleapis.com 'self' 'unsafe-inline'; img-src https://uli-media.tattle.co.in/; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; report-uri 'none';"
},
"permissions": ["storage", "contextMenus"],
"background": {
Expand Down

0 comments on commit a02a454

Please sign in to comment.