Skip to content

Commit e97c46b

Browse files
committed
Merge branch 'nagy-nabil-gh-release'
2 parents af57160 + e836c60 commit e97c46b

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: 'Build And Create New Release'
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
release:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
- name: Install NodeJs v14
17+
uses: actions/setup-node@v3
18+
with:
19+
# Version Spec of the version to use in SemVer notation.
20+
# It also emits such aliases as lts, latest, nightly and canary builds
21+
# Examples: 12.x, 10.15.1, >=10.15.0, lts/Hydrogen, 16-nightly, latest, node
22+
node-version: '14.x'
23+
24+
- name: Run Install
25+
uses: borales/actions-yarn@v4
26+
with:
27+
cmd: install
28+
- name: Build production bundle
29+
uses: borales/actions-yarn@v4
30+
with:
31+
cmd: build # will run `yarn build` command
32+
33+
- name: Release
34+
uses: softprops/action-gh-release@v1
35+
if: startsWith(github.ref, 'refs/tags/')
36+
with:
37+
files: |
38+
extension/chrome.zip
39+
extension/firefox.xpi
40+
extension/opera.crx

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,27 @@
11
# alt-cdn
2+
23
Experiencing a situation where your country inexplicably blocks certain content delivery networks, like jsDelivr, can be quite frustrating. This leads to numerous broken websites due to missing essential JavaScript files. This extension provides an alternative to using a VPN. It simply asks for a list of preferred providers (usually just one for most people) and automatically replaces the blocked content with suitable alternatives.
4+
5+
## Installation
6+
7+
- from releases download the package to your browser `chrome.zip`, `firefox.xpi` or `opera.crx`
8+
9+
- in chrome goto `chrome://extensions/` and enable developer mode, then drag drop the `chrome.zip` file
10+
11+
- if you want to load from source check [Contributing](#contributing)
12+
13+
## Contributing
14+
15+
- make sure you have node.js v14 `nvm use 14`
16+
17+
- install yarn `npm i -g yarn`
18+
19+
- install `yarn install`
20+
21+
- run dev command for your browser `yarn dev:chome` or `yarn dev:firefox` or `yarn dev:opera`
22+
23+
- add the extension to your browser
24+
- In Chrome/Edge
25+
1. go to the extensions page (`chrome://extensions` or `edge://extensions`).
26+
2. Enable Developer Mode.
27+
3. click `load unpacked` then select `$your-project-path/extension/chrome`

0 commit comments

Comments
 (0)