-
Notifications
You must be signed in to change notification settings - Fork 21
Automate browser Extension Release on Chrome Webstore #98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
fahad-israr
wants to merge
4
commits into
main
Choose a base branch
from
auto-publish-on-chrome
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+36
−0
Open
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
788551e
Create browser-Extension-Release-Chromwe-Webstore.yml
fahad-israr cd05d21
Update browser-Extension-Release-Chromwe-Webstore.yml
fahad-israr 1016c52
Remove creds
fahad-israr d8a490f
Update and rename browser-Extension-Release-Chromwe-Webstore.yml to b…
fahad-israr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
.github/workflows/browser-Extension-Release-Chromwe-Webstore.yml
This file contains hidden or 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,35 @@ | ||
| name: "Browser-Extension-Release-Chrome-Webstore" | ||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| paths: | ||
| - 'browser-extension/**' | ||
| release: | ||
| types: [created] | ||
|
|
||
| jobs: | ||
| chrome-extension: | ||
| name: "zip-files" | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: papeloto/action-zip@v1 | ||
| with: | ||
| files: browser-extension/ | ||
| dest: starfix-extension-chrome.zip | ||
|
|
||
| - name: "publish extension on chrome webstore" | ||
| uses: Klemensas/chrome-extension-upload-action@v1.3 | ||
| with: | ||
| refresh-token: 'xyz' | ||
| client-id: 'xyz.apps.googleusercontent.com' | ||
| file-name: ${{ github.workspace }}/starfix-extension-chrome.zip | ||
| app-id: 'ojlhpgekmmemhihkigibkhehlejkjdmo' | ||
| publish: true | ||
|
|
||
| - name: "Upload Artifact" | ||
| uses: actions/upload-artifact@v1 | ||
| with: | ||
| name: starfix-extension-chrome.zip | ||
| path: ${{ github.workspace }}/starfix-extension-chrome.zip | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this not just be "starfix-extension-chrome.zip" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here are the logs after making suggested changes.
Run Klemensas/chrome-extension-upload-action@master
/usr/bin/docker run --name e1cc51461cdf9c760342b19e7985ff94784103_da7574 --label e1cc51 --workdir /github/workspace --rm -e INPUT_REFRESH-TOKEN -e INPUT_CLIENT-ID -e INPUT_FILE-NAME -e INPUT_APP-ID -e INPUT_PUBLISH -e INPUT_CLIENT-SECRET -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_RUN_ATTEMPT -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e RUNNER_OS -e RUNNER_NAME -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/browser-extension-for-starfix/browser-extension-for-starfix":"/github/workspace" e1cc51:461cdf9c760342b19e7985ff94784103 "" "" "" "starfix-extension-chrome.zip" "ojlhpgekmmemhihkigibkhehlejkjdmo" "true"
CApath: none
} [512 bytes data]
{ [102 bytes data]
{ [4392 bytes data]
{ [115 bytes data]
{ [4 bytes data]
} [37 bytes data]
} [1 bytes data]
} [16 bytes data]
{ [1 bytes data]
{ [16 bytes data]
} [271 bytes data]
< HTTP/1.1 200 OK
< Cache-Control: no-cache, no-store, max-age=0, must-revalidate
< Date: Thu, 30 Sep 2021 08:40:52 GMT
< Pragma: no-cache
< Expires: Mon, 01 Jan 1990 00:00:00 GMT
< Content-Type: application/json; charset=utf-8
< Vary: X-Origin
< Vary: Referer
< Server: scaffolding on HTTPServer2
< X-XSS-Protection: 0
< X-Frame-Options: SAMEORIGIN
< X-Content-Type-Options: nosniff
< Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
< Accept-Ranges: none
< Vary: Origin,Accept-Encoding
< Transfer-Encoding: chunked
<
{ [303 bytes data]
CApath: none
} [512 bytes data]
{ [102 bytes data]
{ [4392 bytes data]
{ [115 bytes data]
{ [4 bytes data]
} [37 bytes data]
} [1 bytes data]
} [16 bytes data]
{ [1 bytes data]
{ [16 bytes data]
< HTTP/1.1 100 Continue
} [2477 bytes data]
< HTTP/1.1 200 OK
< X-GUploader-UploadID: ADPycdufL8oOZd-gIP9njsbHrmh7Yo4KsHKtWEthxr8xFXIWlFh0KobI3CjKFWf4UdRugsazroL6GYWG7S2GSL0GZGjyVkThww
< Content-Type: application/json; charset=UTF-8
< Vary: Origin
< Vary: X-Origin
< Vary: Referer
< Content-Length: 356
< Date: Thu, 30 Sep 2021 08:40:53 GMT
< Server: UploadServer
< Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
<
{ [356 bytes data]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@maxandersen I'm a bit stuck up on this. I've tried a bunch of things but I am unable to figure out why it's not working.
You can refer my repository for logs: https://github.com/fahad-israr/browser-extension-for-starfix/actions
(There are too many of them because I've tried a lot of times )