@@ -3,7 +3,7 @@ name: Build Desktop (v1)
33on :
44 push :
55 tags :
6- - desktop- *
6+ - v *
77 workflow_dispatch :
88 inputs :
99 debugElectronBuilder :
1818jobs :
1919 setup :
2020 runs-on : ubuntu-latest
21- if : startsWith(github.ref, 'refs/tags/desktop ')
21+ if : startsWith(github.ref, 'refs/tags/v ')
2222 outputs :
2323 version : ${{ steps.set_outputs.outputs.version }}
2424 release_name : ${{ steps.set_outputs.outputs.release_name }}
2828 - id : set_outputs
2929 name : Set outputs for version, release name, and stage
3030 run : |
31- VERSION=${GITHUB_REF#refs/*/desktop- }
31+ VERSION=${GITHUB_REF#refs/*/v }
3232 RELEASE_NAME=$(echo $VERSION | perl -0777 -pe 's/^([0-9]\d*\.[0-9]\d*\.[0-9]\d*)(?:-([a-z]*)-(\d*))?$/$1 \u$2 $3/')
3333 STAGE=$(echo $VERSION | perl -0777 -pe 's/^([0-9]\d*\.[0-9]\d*\.[0-9]\d*)(?:-([a-z]*)-(\d*))?$/$2/')
3434
@@ -145,21 +145,21 @@ jobs:
145145 - name : Install Sentry CLI
146146 # Yarn has issues putting binaries in the PATH on Windows
147147 run : npm i -g @sentry/cli
148- if : ${{ startsWith(github.ref, 'refs/tags/desktop ') && matrix.os != 'macos-13' }}
149-
150- # - name: Strip backend debug info and upload to Sentry (Linux)
151- # run: |
152- # cp index.node index.node.dbg
153- # strip -S index.node
154- # objcopy --add-gnu-debuglink=index.node.dbg index.node
155- # sentry-cli difutil check index.node.dbg
156- # sentry-cli upload-dif -o "iota-foundation-h4" -p "iota-legacy-migration-tool-backend" --include-sources index.node.dbg
157- # sentry-cli upload-dif -o "iota-foundation-h4" -p "iota-legacy-migration-tool-desktop" --include-sources index.node.dbg
158- # working-directory: packages/backend/bindings/node
159- # env:
160- # SENTRY_LOG_LEVEL: 'debug'
161- # SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
162- # if: ${{ startsWith(github.ref, 'refs/tags/desktop ') && matrix.os == 'ubuntu-20.04' }}
148+ if : ${{ startsWith(github.ref, 'refs/tags/v ') && matrix.os != 'macos-13' }}
149+
150+ - name : Strip backend debug info and upload to Sentry (Linux)
151+ run : |
152+ cp index.node index.node.dbg
153+ strip -S index.node
154+ objcopy --add-gnu-debuglink=index.node.dbg index.node
155+ sentry-cli difutil check index.node.dbg
156+ sentry-cli upload-dif -o "iota-foundation-h4" -p "iota-legacy-migration-tool-backend" --include-sources index.node.dbg
157+ sentry-cli upload-dif -o "iota-foundation-h4" -p "iota-legacy-migration-tool-desktop" --include-sources index.node.dbg
158+ working-directory : packages/backend/bindings/node
159+ env :
160+ SENTRY_LOG_LEVEL : ' debug'
161+ SENTRY_AUTH_TOKEN : ${{ secrets.SENTRY_AUTH_TOKEN }}
162+ if : ${{ startsWith(github.ref, 'refs/tags/v ') && matrix.os == 'ubuntu-20.04' }}
163163
164164 - name : Upload backend debug info to Sentry (Windows)
165165 run : |
@@ -169,7 +169,7 @@ jobs:
169169 working-directory : packages/backend/bindings/node/native/target/x86_64-pc-windows-msvc/release
170170 env :
171171 SENTRY_AUTH_TOKEN : ${{ secrets.SENTRY_AUTH_TOKEN }}
172- if : ${{ startsWith(github.ref, 'refs/tags/desktop ') && matrix.os == 'windows-latest' }}
172+ if : ${{ startsWith(github.ref, 'refs/tags/v ') && matrix.os == 'windows-latest' }}
173173
174174 - name : Set productName
175175 run : node scripts/fix-productName.js
@@ -181,7 +181,7 @@ jobs:
181181 shell : bash
182182 env :
183183 HARDCODE_NODE_ENV : true
184- SENTRY : ${{ startsWith(github.ref, 'refs/tags/desktop ') }}
184+ SENTRY : ${{ startsWith(github.ref, 'refs/tags/v ') }}
185185 SENTRY_DSN : ${{ secrets.SENTRY_DSN_PROD_DESKTOP }}
186186 SENTRY_AUTH_TOKEN : ${{ secrets.SENTRY_AUTH_TOKEN }}
187187
@@ -262,7 +262,7 @@ jobs:
262262 release :
263263 runs-on : ubuntu-latest
264264 needs : [setup, build]
265- if : startsWith(github.ref, 'refs/tags/desktop ')
265+ if : startsWith(github.ref, 'refs/tags/v ')
266266 env :
267267 VERSION : ${{ needs.setup.outputs.version }}
268268 RELEASE_NAME : ${{ needs.setup.outputs.release_name }}
@@ -274,19 +274,19 @@ jobs:
274274 - name : Checkout code
275275 uses : actions/checkout@v2
276276
277- - name : Downloading artifacts
277+ - name : Downloading artifacts windows
278278 uses : actions/download-artifact@v2
279279 with :
280280 name : iota-legacy-migration-tool-desktop-windows-latest
281281 path : assets
282282
283- - name : Downloading artifacts
283+ - name : Downloading artifacts mac
284284 uses : actions/download-artifact@v2
285285 with :
286286 name : iota-legacy-migration-tool-desktop-macos-13
287287 path : assets
288288
289- - name : Downloading artifacts
289+ - name : Downloading artifacts linux
290290 uses : actions/download-artifact@v2
291291 with :
292292 name : iota-legacy-migration-tool-desktop-ubuntu-20.04
0 commit comments