From 6bfaa2872fdb7b6bc60f5dbac57fa04c5bb25b9f Mon Sep 17 00:00:00 2001 From: jliddev Date: Sun, 22 Nov 2020 23:45:45 -0600 Subject: [PATCH] Update electron-build.yml --- .github/workflows/electron-build.yml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/electron-build.yml b/.github/workflows/electron-build.yml index 3d868eaa..0a189fa5 100644 --- a/.github/workflows/electron-build.yml +++ b/.github/workflows/electron-build.yml @@ -2,8 +2,8 @@ name: Build WowUp Electron on: - push # create: - # tags: - # - v* + # tags: + # - v* jobs: create-release: @@ -22,27 +22,36 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - node-version: [ 14.x ] + node-version: [14.x] steps: - name: Checkout uses: actions/checkout@v2 with: fetch-depth: 0 - + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - + - name: Install Angular CLI run: npm install -g @angular/cli - - name: Build App + - name: Build Linux App + if: matrix.os == 'ubuntu-latest' env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token run: | cd ./wowup-electron npm i - \ No newline at end of file + - name: Build Windows App + if: matrix.os == 'windows-latest' + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + CSC_LINK: ${{ secrets.WINDOWS_CSC_LINK }} + CSC_KEY_PASSWORD: ${{ secrets.WINDOWS_CSC_KEY_PASSWORD }} + run: | + cd ./wowup-electron + npm i