Skip to content

Commit 882a97b

Browse files
committed
reverted
1 parent 2d6fae0 commit 882a97b

File tree

1 file changed

+61
-7
lines changed

1 file changed

+61
-7
lines changed

.github/workflows/build.yml

Lines changed: 61 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@ jobs:
3838
working-directory: ./app
3939
run: yarn install --frozen-lockfile
4040

41+
- name: Build Electron app (development)
42+
if: ${{ !inputs.release-mode }}
43+
working-directory: ./app
44+
run: yarn run package
45+
env:
46+
NODE_ENV: production
47+
NODE_OPTIONS: --max-old-space-size=4096
48+
CI: true
49+
4150
- name: Build Electron app (release)
4251
if: ${{ inputs.release-mode }}
4352
working-directory: ./app
@@ -47,6 +56,14 @@ jobs:
4756
NODE_OPTIONS: --max-old-space-size=4096
4857
CI: true
4958

59+
- name: Upload build artifacts (development)
60+
if: ${{ !inputs.release-mode }}
61+
uses: actions/upload-artifact@v4
62+
with:
63+
name: electron-app-${{ matrix.os }}
64+
path: app/out/
65+
retention-days: ${{ inputs.retention-days }}
66+
5067
- name: Upload release artifacts
5168
if: ${{ inputs.release-mode }}
5269
uses: actions/upload-artifact@v4
@@ -75,17 +92,54 @@ jobs:
7592
working-directory: ./extension
7693
run: yarn install --frozen-lockfile
7794

78-
- name: Zip extensions (release mode)
95+
- name: Build Chrome extension (development)
96+
if: ${{ !inputs.release-mode }}
97+
working-directory: ./extension
98+
run: yarn run build
99+
100+
- name: Build Firefox extension (development)
101+
if: ${{ !inputs.release-mode }}
102+
working-directory: ./extension
103+
run: yarn run build:firefox
104+
105+
- name: Zip Chrome extension (release mode)
106+
if: ${{ inputs.release-mode }}
107+
working-directory: ./extension
108+
run: yarn run zip
109+
110+
- name: Zip Firefox extension (release mode)
79111
if: ${{ inputs.release-mode }}
80112
working-directory: ./extension
81-
run: |
82-
yarn run zip
83-
yarn run zip:firefox
113+
run: yarn run zip:firefox
114+
115+
- name: Upload Chrome build artifacts (development)
116+
if: ${{ !inputs.release-mode }}
117+
uses: actions/upload-artifact@v4
118+
with:
119+
name: extension-chrome
120+
path: extension/.output/chrome-mv3/
121+
retention-days: ${{ inputs.retention-days }}
122+
123+
- name: Upload Firefox build artifacts (development)
124+
if: ${{ !inputs.release-mode }}
125+
uses: actions/upload-artifact@v4
126+
with:
127+
name: extension-firefox
128+
path: extension/.output/firefox-mv2/
129+
retention-days: ${{ inputs.retention-days }}
130+
131+
- name: Upload Chrome extension zip (release)
132+
if: ${{ inputs.release-mode }}
133+
uses: actions/upload-artifact@v4
134+
with:
135+
name: extension-chrome-release
136+
path: extension/.output/*-chrome.zip
137+
retention-days: ${{ inputs.retention-days }}
84138

85-
- name: Upload extension artifacts (release)
139+
- name: Upload Firefox extension zip (release)
86140
if: ${{ inputs.release-mode }}
87141
uses: actions/upload-artifact@v4
88142
with:
89-
name: extension-releases
90-
path: extension/.output/*.zip
143+
name: extension-firefox-release
144+
path: extension/.output/*-firefox.zip
91145
retention-days: ${{ inputs.retention-days }}

0 commit comments

Comments
 (0)