Electron-Builder installers for multi platforms #25177
-
Building an electron app on three platforms. The tool
The version string comes its I have not been able to figure out a way to set the artifact and asset names to contain the version string (not semver). At the moment, I am hard-coding the version into the workflow itself. Then using action Here is the start of the workflow and below that is the uploading action.
The uploading action:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi @mandolyte , Thank you for being here!
2. The version string comes its >> You can get the tag version from ‘${GITHUB_REF##*v}’, and compare the value in ‘package.json’, use if expression to execute the next steps accordingly. In total, i assume your script can be changed as below(I removed macos part you can add accordingly).
Hope it helps! |
Beta Was this translation helpful? Give feedback.
-
I think I spoke too soon. Looks like env vars are not allowed where I need them. Hope you have another idea! |
Beta Was this translation helpful? Give feedback.
-
Hi @mandolyte , Thanks for your reply! The env value to get in action ‘with’ should use the format : ${{ env.artifactname }} I have changed in my first post, thanks. |
Beta Was this translation helpful? Give feedback.
Hi @mandolyte ,
Thank you for being here!
2. The version string comes its
package.json
. And I want to run the workflow when I push the tag forv1.0.1
.>> You can get the tag version from ‘${GITHUB_REF##*v}’, and compare the value in ‘package.json’, use if expression to execute the next steps accordingly.
In total, i assume your script can be changed as below(I removed macos part you can add accordingly).