Skip to content

Commit

Permalink
specify addon id in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
r2dev2 committed May 26, 2024
1 parent 6124be6 commit 18e1a11
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
- published
jobs:
build:
env:
ADDON_ID: "{14a15c41-13f4-498e-986c-7f00435c4d00}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
3 changes: 3 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ export default defineConfig({
...manifest,
version: (process.env.VERSION ?? '') || manifest.version
};
if ('browser_specific_settings' in newManifest && process.env.ADDON_ID) {
newManifest.browser_specific_settings.gecko.id = process.env.ADDON_ID;
}
return newManifest;
},
assets: 'assets',
Expand Down

0 comments on commit 18e1a11

Please sign in to comment.