Skip to content
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

Ci publish firefox #55

Merged
merged 30 commits into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
99f7f77
Add publish-firefox-extension to CI workflow
HarlemSquirrel Apr 17, 2024
b3a3fd3
Update ci workflow
HarlemSquirrel Apr 17, 2024
9c9bce2
Update manifest.firefox.json
HarlemSquirrel Apr 27, 2024
855e5e2
Create publish-test.yml
HarlemSquirrel Apr 27, 2024
e2553ed
Add nvmrc
HarlemSquirrel Apr 27, 2024
3b43ff6
Update publish test
HarlemSquirrel Apr 27, 2024
4bfac91
Update publish test
HarlemSquirrel Apr 27, 2024
3a82548
Update publish test
HarlemSquirrel Apr 27, 2024
204e71a
Update publish test
HarlemSquirrel Apr 27, 2024
611778d
Update publish test
HarlemSquirrel Apr 27, 2024
87a24ab
Update publish test
HarlemSquirrel Apr 27, 2024
b2ff785
Update publish test
HarlemSquirrel Apr 27, 2024
a9b8aab
Update publish-test
HarlemSquirrel May 2, 2024
0650345
Update publish-test
HarlemSquirrel May 2, 2024
2305b14
Update workflows
HarlemSquirrel May 2, 2024
1bd20ed
Change version to test publishing
HarlemSquirrel May 2, 2024
00cef96
Update publish firefox and id for testing
HarlemSquirrel May 2, 2024
199e38d
Update publish firefox workflow
HarlemSquirrel May 2, 2024
0f8c1a2
Update publish-firefox
HarlemSquirrel May 3, 2024
0b66e58
Bump node to 18.20.2
HarlemSquirrel May 6, 2024
0c024a6
Merge remote-tracking branch 'upstream/master' into ci-publish-firefox
HarlemSquirrel May 17, 2024
4dc6fdc
wip
HarlemSquirrel May 17, 2024
efb8213
Bump version
HarlemSquirrel May 17, 2024
7e0dd53
WIP
HarlemSquirrel May 17, 2024
10bbeae
Update publish-firefix-addon.js
HarlemSquirrel May 20, 2024
9869aed
Update publish-firefox workflow
HarlemSquirrel May 21, 2024
422b559
Update maniftest
HarlemSquirrel May 21, 2024
2176c42
Remove jsonwebtoken
HarlemSquirrel May 21, 2024
7aa08cf
Cleanups
HarlemSquirrel May 21, 2024
3a0cc52
Cleanups
HarlemSquirrel May 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/publish-firefox.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish Firefox Addon

on:
push:
tags:
- '*'

jobs:
publish-firefox-extension:
runs-on: ubuntu-latest
outputs:
xpi_filepath: ${{ steps.sign.outputs.xpi_filepath }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install npm modules
run: npm ci
- name: Build
run: |
npm run build-firefox
- name: Publish
env:
WEB_EXT_API_KEY: ${{ vars.FIREFOX_API_KEY }}
WEB_EXT_API_SECRET: ${{ secrets.FIREFOX_API_SECRET }}
# https://extensionworkshop.com/documentation/develop/web-ext-command-reference/#use-submission-api
run: npx web-ext sign --use-submission-api --channel=listed --source-dir=./dist/firefox
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ xcuserdata/
**/xcshareddata/WorkspaceSettings.xcsettings

native-messaging-host/build/

# Artifacts from signing the addon for Firefox
web-ext-artifacts
2 changes: 1 addition & 1 deletion manifest.firefox.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"browser_specific_settings": {
"gecko": {
"id": "keeweb-connect@keeweb.info"
"id": "keeweb-connect-addon@keeweb.info"
}
},
"commands": {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"eslint": "eslint webpack.config.ts src scripts",
"prettier": "prettier --write src/**/*.ts src/**/*.tsx pages/*.html styles/*.css",
"download-translations": "ts-node scripts/download-translations",
"bump-version": "ts-node scripts/bump-version"
"bump-version": "ts-node scripts/bump-version",
"publish-firefox-addon": "node .github/publish-firefox-addon.js"
},
"repository": {
"type": "git",
Expand Down
Loading