Skip to content

Commit

Permalink
tool: add publishing to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
wrbl606 committed Aug 31, 2024
1 parent bf89b6a commit 97cfecc
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 5 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/create_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,11 @@ jobs:
- name: Release
uses: softprops/action-gh-release@v2
with:
files: build.tar.gz
files: |
web-ext-artifacts/build.tar.gz
web-ext-artifacts/build.zip
- name: Publish
env:
ADDONS_MOZ_JWT_ISSUER: ${{ secrets.ADDONS_MOZ_JWT_ISSUER }}
ADDONS_MOZ_JWT_SECRET: ${{ secrets.ADDONS_MOZ_JWT_SECRET }}
run: make publish
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.DS_Store
dist.zip
node_modules/
web-ext-artifacts/
node_modules/
build.tar.gz
.amo-upload-uuid
15 changes: 14 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
.PHONY: build
build:
cd src && tar -czf ../build.tar.gz ./*
web-ext build -s ./src -n build.zip --overwrite-dest
cd src && tar -czf ../web-ext-artifacts/build.tar.gz ./*

.PHONY: lint
lint:
cd src && web-ext lint

.PHONY: publish
publish:
web-ext sign \
--source-dir src \
--api-key $(ADDONS_MOZ_JWT_ISSUER) --api-secret $(ADDONS_MOZ_JWT_SECRET) \
--channel listed \
--amo-metadata ./amo-metadata.json
17 changes: 17 additions & 0 deletions amo-metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"version": {
"license": "LGPL-3.0-or-later"
},
"categories": {
"firefox": [
"other"
]
},
"requires_payment": false,
"homepage": {
"en-US": "https://what-to-click.com"
},
"support_email": {
"en-US": "hey@what-to-click.com"
}
}
3 changes: 3 additions & 0 deletions src/.web-extension-id
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file was created by https://github.com/mozilla/web-ext
# Your auto-generated extension ID for addons.mozilla.org is:
{7feef224-a737-4d04-b0c1-ea47d4cad70a}
7 changes: 6 additions & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "What-to-click",
"version": "1.12.5",
"version": "1.12.6",
"description": "Fully offline, AI-powered how-to documentation creator.",
"icons": {
"48": "icons/record.svg"
Expand Down Expand Up @@ -39,5 +39,10 @@
"default": "Alt+R"
}
}
},
"browser_specific_settings": {
"gecko": {
"id": "{7feef224-a737-4d04-b0c1-ea47d4cad70a}"
}
}
}

0 comments on commit 97cfecc

Please sign in to comment.