Skip to content

Test/GitHub actions

Test/GitHub actions #5

Workflow file for this run

name: Build nRF Connect for Desktop for Windows x64
on:
workflow_dispatch:
pull_request:
branches:
- main
push:
branches:
- main
- test/github-actions
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Build
uses: ./.github/actions/build-action
- name: Fetch certificate file
if: github.event_name != 'pull_request'
shell: bash
env:
NORDIC_SIGNING_CERTIFICATE:
${{ secrets.NORDIC_SIGNING_CERTIFICATE_PFX }}
run:
echo "$NORDIC_SIGNING_CERTIFICATE" | base64 --decode >
./nordic_signing_certificate.pfx
if: github.event_name != 'pull_request'

Check failure on line 30 in .github/workflows/build_win.yml

View workflow run for this annotation

GitHub Actions / Build nRF Connect for Desktop for Windows x64

Invalid workflow file

The workflow is not valid. .github/workflows/build_win.yml (Line: 30, Col: 15): 'if' is already defined
- name: Run Electron Builder
env:
CSC_LINK: ./nordic_signing_certificate.pfx
CSC_KEY_PASSWORD:
${{ secrets.NORDIC_SIGNING_CERTIFICATE_PFX_PASS }}
run: npx electron-builder -p never --windows nsis:x64
if: github.event_name != 'pull_request'
- name: Upload
uses: ./.github/actions/publish-action
with:
suffix: for Windows x64