-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add GitHub Actions release workflow
- Loading branch information
Showing
3 changed files
with
64 additions
and
59 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,58 @@ | ||
name: Publish | ||
|
||
on: | ||
push: | ||
tags: | ||
- v** | ||
|
||
jobs: | ||
build: | ||
name: Build & Publish | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Install NodeJS | ||
uses: actions/[email protected] | ||
with: | ||
node-version: '20.11.0' | ||
|
||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Create Package | ||
run: | | ||
cp manifest_chrome.json manifest.json | ||
zip -r ezproxy-redirect-chrome-$GITHUB_REF_NAME.zip ./* | ||
cp manifest_firefox.json manifest.json | ||
zip -r ezproxy-redirect-firefox-$GITHUB_REF_NAME.zip ./* | ||
- name: Upload to Chrome Web Store | ||
run: | | ||
npx [email protected] upload \ | ||
--source ezproxy-redirect-chrome-$GITHUB_REF_NAME.zip | ||
env: | ||
EXTENSION_ID: gfhnhcbpnnnlefhobdnmhenofhfnnfhi | ||
CLIENT_ID: ${{ secrets.CHROME_CLIENT_ID }} | ||
CLIENT_SECRET: ${{ secrets.CHROME_CLIENT_SECRET }} | ||
REFRESH_TOKEN: ${{ secrets.CHROME_REFRESH_TOKEN }} | ||
|
||
- name: Upload to Mozilla Add-Ons | ||
run: npx [email protected] sign --use-submission-api --channel listed | ||
env: | ||
WEB_EXT_API_KEY: ${{ secrets.MOZILLA_API_KEY }} | ||
WEB_EXT_API_SECRET: ${{ secrets.MOZILLA_API_SECRET }} | ||
|
||
- name: Upload artifacts | ||
uses: actions/[email protected] | ||
with: | ||
name: ezproxy-redirect-${{ env.GITHUB_REF_NAME }} | ||
path: ezproxy-redirect-*.zip | ||
if-no-files-found: error | ||
|
||
- name: Create release | ||
uses: ncipollo/[email protected] | ||
with: | ||
artifactErrorsFailBuild: true | ||
artifacts: ezproxy-redirect-*.zip | ||
generateReleaseNotes: true | ||
prerelease: ${{ contains(github.ref, '-alpha') || contains(github.ref, '-beta') || contains(github.ref, '-rc') || contains(github.ref, '-pre') }} |
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
.*.swp | ||
/manifest.json | ||
/ezproxy-redirect-*.zip | ||
/web-ext-artifacts/ |
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 |
---|---|---|
@@ -1,13 +1,12 @@ | ||
Chrome EZProxy Redirect | ||
======================= | ||
EZProxy Redirect Browser Extension | ||
================================== | ||
|
||
By: Tom Wambold <[email protected]> | ||
|
||
Updates By: Rohit Agrawal <https://github.com/rohitagr> | ||
|
||
Code: https://github.com/tom5760/chrome-ezproxy | ||
|
||
Extension: https://chrome.google.com/extensions/detail/gfhnhcbpnnnlefhobdnmhenofhfnnfhi | ||
Chrome Extension: https://chromewebstore.google.com/detail/ezproxy-redirect/gfhnhcbpnnnlefhobdnmhenofhfnnfhi | ||
Firefox Extension: https://addons.mozilla.org/addon/firefox-ezproxy-redirect/ | ||
|
||
Description | ||
----------- | ||
|
@@ -23,57 +22,3 @@ All it does is pass the URL to your library's EZProxy login URL. For example: | |
would change to: | ||
|
||
http://www.library.drexel.edu/cgi-bin/r.cgi?url=http://ieeexplore.ieee.org | ||
|
||
Change Log | ||
---------- | ||
|
||
Version 20 - June 19, 2022: | ||
* Update EZProxy URL Database to new site: https://libproxy-db.org/ | ||
|
||
Version 18 - June 13, 2018: | ||
* Add copy option to right-clicking the browser button, which was excluded from | ||
the previous version by mistake. | ||
|
||
Version 17 - June 12, 2018: | ||
* Add support for Mozilla Firefox from the same code base. | ||
* Add an option when right-clicking a link, to copy the | ||
transformed URL to the clipboard. Right now, this only works on Google | ||
Chrome. Thanks Adam Rickey @ University of San Diego for the idea. | ||
* Allow using multiple proxies simultaneously. On the options screen, multiple | ||
proxies can be chosen. When more than one is selected, clicking the extension | ||
button will display a popup listing all of them. Context menus will also | ||
display a sub-menu allowing choice of proxy. | ||
|
||
Version 16 - August 10, 2017: | ||
* Update to yesterdays release, now uses the "activeTab" permission, instead of | ||
the "tabs" permission, which removes the scary warning about the extension | ||
being able to access browser history (it doesn't). | ||
|
||
Version 15 - August 9, 2017: | ||
* Update to fix issue in Chrome 60. The latest version of Chrome restricts | ||
access to the URL the current tab is on behind the "tabs" permission. This | ||
is required so that the extension can redirect you when you click the | ||
extension button. Nothing about the actual function of the extension | ||
changed, just the added permission to keep the current functionality working. | ||
|
||
Version 14 - December 12, 2014: | ||
* Use chrome's synced storage to save the redirect url | ||
|
||
Version 10 - March 23, 2011: | ||
* Added support for updating URL lists from my EZProxy URL Database, so | ||
I don't have to release new versions of the extension just to add new | ||
URLs. https://libproxy-db.org/ | ||
* Fixed Columbia University URL (thanks Chris) | ||
* Added RIT URL (thanks Sakshar) | ||
|
||
Version 8,9 - December 20, 2010: | ||
* Added URL for University of Central Florida (thanks Pieter). | ||
* Updated icon (I seem to have forgotten to commit it last time). | ||
|
||
Version 5 - September 8, 2010: | ||
* Added context menu item for links. | ||
* Added drop down box in options to select school. | ||
|
||
Version 4 - March 3, 2010: | ||
* Initial version on GitHub. | ||
* Simple redirect button. |