diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 86de839..8cce0c7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,25 +42,16 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - - name: Setup env - uses: ./.github/actions/setup-env - with: - electron: ${{ inputs.build-version }} - os: ${{ matrix.os }} - - - name: install node-gyp - run: npm i -g node-gyp - + - name: Resolve Electron version for test id: electron-test-version shell: bash run: | - if [ ${{ inputs.build-version }} == '29.0.0' ]; then + if [ '${{ inputs.build-version }}' == '29.0.0' ]; then echo "test-version=29.4.6" >> $GITHUB_OUTPUT - elif [ ${{ inputs.build-version }} == '30.0.0' ]; then + elif [ '${{ inputs.build-version }}' == '30.0.0' ]; then echo "test-version=30.5.1" >> $GITHUB_OUTPUT - elif [ ${{ inputs.build-version }} == '31.0.0' ]; then + elif [ '${{ inputs.build-version }}' == '31.0.0' ]; then echo "test-version=31.6.0" >> $GITHUB_OUTPUT else core.setFailed("Unable to resolve Electron version for testing") @@ -71,6 +62,16 @@ jobs: echo "the secret number is ${{ steps.electron-test-version.outputs.test-version }}" exit 1 + - name: Setup env + uses: ./.github/actions/setup-env + with: + electron: ${{ inputs.build-version }} + os: ${{ matrix.os }} + + - name: install node-gyp + run: npm i -g node-gyp + + - name: Create release folder run: | mkdir "release\ia32\${{ inputs.build-version }}"