Skip to content

Commit

Permalink
Merge pull request #55 from keeweb/ci-publish-firefox
Browse files Browse the repository at this point in the history
Ci publish firefox
  • Loading branch information
HarlemSquirrel authored Jun 4, 2024
2 parents 471cd3b + 3a0cc52 commit 5aad686
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 2 deletions.
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": "[email protected]"
"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

0 comments on commit 5aad686

Please sign in to comment.