Skip to content

Commit acd725a

Browse files
committed
Add workflow
1 parent 3513a7c commit acd725a

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/webextension.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: WebExtension
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: windows-latest
12+
13+
steps:
14+
- uses: actions/checkout@v7
15+
16+
- uses: actions/setup-node@v7
17+
with:
18+
node-version: 22
19+
20+
# Lint and build the zip packages.
21+
- name: Build
22+
run: .\build.bat all
23+
shell: cmd
24+
working-directory: webextensions
25+
26+
# The signing key is not kept in the repository, so Edge signs with a
27+
# throwaway key it generates. The resulting extension ID differs on every
28+
# run, which makes this crx a build check rather than a deliverable.
29+
# Release crx files for enterprise distribution are built locally with the
30+
# designated key placed at pem\edge.pem.
31+
- name: Pack crx
32+
run: .\build.bat crx
33+
shell: cmd
34+
working-directory: webextensions
35+
36+
- uses: actions/upload-artifact@v7
37+
with:
38+
name: BrowserGuardEdge
39+
if-no-files-found: error
40+
path: |
41+
webextensions/BrowserGuardEdge.zip
42+
webextensions/BrowserGuardEdgeDev.zip
43+
webextensions/BrowserGuardEdge.crx

0 commit comments

Comments
 (0)