|
38 | 38 | working-directory: ./app |
39 | 39 | run: yarn install --frozen-lockfile |
40 | 40 |
|
| 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 | + |
41 | 50 | - name: Build Electron app (release) |
42 | 51 | if: ${{ inputs.release-mode }} |
43 | 52 | working-directory: ./app |
|
47 | 56 | NODE_OPTIONS: --max-old-space-size=4096 |
48 | 57 | CI: true |
49 | 58 |
|
| 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 | + |
50 | 67 | - name: Upload release artifacts |
51 | 68 | if: ${{ inputs.release-mode }} |
52 | 69 | uses: actions/upload-artifact@v4 |
@@ -75,17 +92,54 @@ jobs: |
75 | 92 | working-directory: ./extension |
76 | 93 | run: yarn install --frozen-lockfile |
77 | 94 |
|
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) |
79 | 111 | if: ${{ inputs.release-mode }} |
80 | 112 | 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 }} |
84 | 138 |
|
85 | | - - name: Upload extension artifacts (release) |
| 139 | + - name: Upload Firefox extension zip (release) |
86 | 140 | if: ${{ inputs.release-mode }} |
87 | 141 | uses: actions/upload-artifact@v4 |
88 | 142 | with: |
89 | | - name: extension-releases |
90 | | - path: extension/.output/*.zip |
| 143 | + name: extension-firefox-release |
| 144 | + path: extension/.output/*-firefox.zip |
91 | 145 | retention-days: ${{ inputs.retention-days }} |
0 commit comments