Skip to content

Electron-Builder installers for multi platforms #25177

Answered by weide-zhou
mandolyte asked this question in Actions
Discussion options

You must be logged in to vote

Hi @mandolyte ,

Thank you for being here!

  1. ‘Workflow&Job level env’ and matrix doesn’t accept variables, hence you can set the artifacts/asset name in step level.

2. The version string comes its package.json. And I want to run the workflow when I push the tag for v1.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).

jobs:
  build:
    name: build-electron-from-react-web
# env:
# VERSION: 1.0.1
# update versions below
runs-on: ${{ matrix.os }}
strategy:
  matrix:
    os: [ubuntu-la…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants