Skip to content

Commit 873c852

Browse files
committed
Merge branch 'master' of github.com:pawanjenu/LeetcodeSessionManager
2 parents ee2a45c + 0f49c06 commit 873c852

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ on:
2323
jobs:
2424
# This workflow contains a single job called "build"
2525
build:
26-
name: 'Build and release Zip'
26+
name: 'Build and release Extension'
2727
# The type of runner that the job will run on
2828
runs-on: ubuntu-latest
2929

@@ -55,11 +55,19 @@ jobs:
5555
mv ./new_manifest.json ./dist/LeetcodeSessionManager/manifest.json
5656
cd ./dist/LeetcodeSessionManager
5757
zip -r ../../LeetcodeSessionManager-${{ github.event.inputs.tag }}.zip .
58-
58+
59+
# Runs a set of commands using the runners shell
60+
- name: Release to Mozilla Amo
61+
if: ${{ github.event_name == 'workflow_dispatch' }}
62+
run: |
63+
npm install --global web-ext
64+
cd ./dist/LeetcodeSessionManager
65+
npx web-ext sign --api-key ${{ secrets.FIREFOX_API_KEY }} --api-secret ${{ secrets.FIREFOX_API_SECRET }} --channel listed --id ${{ secrets.FIREFOX_API_ID }} || true
66+
5967
- name: 'Create GitHub Release'
6068
uses: softprops/action-gh-release@v1
6169
if: ${{ github.event_name == 'workflow_dispatch' }}
6270
with:
6371
files: ./LeetcodeSessionManager*.zip
64-
tag_name: v${{ github.run_number }}
72+
tag_name: v${{ github.event.inputs.tag }}
6573
name: Release V${{ github.event.inputs.tag }}

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
# LeetcodeSessionManager [![Build and Release](https://github.com/pawanjenu/LeetcodeSessionManager/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/pawanjenu/LeetcodeSessionManager/actions/workflows/main.yml)
2-
#### Multiple Users, 1 Leetcoce Premium Account!
2+
#### Multiple Users, 1 Leetcode Premium Account!
33
<p align="center">
4-
<a href="https://addons.mozilla.org/en-US/firefox/addon/leetsessionmanager/" target="_blank">
4+
<a href="https://addons.mozilla.org/en-US/firefox/addon/leetsessionmanagerr/" target="_blank">
55
<img width="149" height="48" src="badges/Firefox.png?raw=true">
66
</a>
7-
<a href="https://github.com/pawanjenu/LeetcodeSessionManager/wiki/Install-extension" target="_blank">
7+
<a href="https://chrome.google.com/webstore/detail/nophchlleabfnhjonhnhjiacdjhjkghb" target="_blank">
88
<img width="178" height="48" src="badges/Chrome.png?raw=true">
99
</a>
10+
<a href="https://microsoftedge.microsoft.com/addons/detail/jpijebggajegceaheogkhmmgdbfpbkla" target="_blank">
11+
<img width="178" height="48" src="badges/Edge.png?raw=true">
12+
</a>
1013
</p>
1114

1215
# About
@@ -19,9 +22,6 @@ if User-1, activates his session in his device and at the same time you(User-2)
1922
How does this extension solve this issue?
2023
you get to choose the session(sub-account) you want to track your submissions, and this extension will make sure, its tracked inside your chosen session.
2124

22-
# Installation guide:
23-
Please head over to: [Installation section](https://github.com/pawanjenu/LeetcodeSessionManager/wiki/Install-extension)
24-
2525
# Usage:
2626
* Please make sure that you are logged in to leetcode.com before using the extension.
2727
* On the first run, no session is chosen, so please click on the the drop down and select the desired session.

0 commit comments

Comments
 (0)