Welcome to mirror list, hosted at ThFree Co, Russian Federation.

electron-builder-win.yml « workflows « .github - github.com/jgraph/drawio-desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1614f4037574720efd4469e41b76a512103364bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Electron Builder CI (WIN)

on:
  push:
    tags:
      - 'v*'

jobs:
  build:
    runs-on: windows-latest
    env:
      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    steps:
    - name: Checkout reposistory
      uses: actions/checkout@v2
    - name: Installing Node
      uses: actions/setup-node@v2
      with:
        node-version: 14
    - name: Prepare for Windows Build
      shell: powershell #The default shell for Windows
      run: |
        git config --global core.autocrlf input
        (gc .\.gitmodules) -replace 'git@github.com:','https://github.com/' | Out-File -encoding ASCII .gitmodules
        git submodule update --init --recursive
        npm install -g yarn
        yarn install
    - name: Build for Windows (x32)
      env:
        CSC_LINK: ${{ secrets.WIN_CSC_LINK }}
        CSC_KEY_PASSWORD: ${{ secrets.WIN_CSC_KEY_PASSWORD }}
      shell: powershell #The default shell for Windows
      run: |
        #Disable auto-update and build 32bit first such that latest.yml is for 64bit only (64bit will overwrite 32bit one)
        yarn run sync disableUpdate
        yarn run release-win32
    - name: Build for Windows (x64)
      env:
        CSC_LINK: ${{ secrets.WIN_CSC_LINK }}
        CSC_KEY_PASSWORD: ${{ secrets.WIN_CSC_KEY_PASSWORD }}
      shell: powershell #The default shell for Windows
      run: |
        #Enable auto-update again
        yarn run sync
        yarn run release-win
    - name: Build for Windows (APPX)
      shell: powershell #The default shell for Windows
      run: |
        #Disable auto-update for appx also
        yarn run sync disableUpdate
        yarn run release-appx