|
| 1 | +name: Build Beta |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - beta |
| 7 | + |
| 8 | +jobs: |
| 9 | + Windows: |
| 10 | + name: Windows |
| 11 | + runs-on: windows-latest |
| 12 | + steps: |
| 13 | + - name: Check out git repository |
| 14 | + uses: actions/checkout@v2 |
| 15 | + |
| 16 | + - name: Install Node.js |
| 17 | + uses: actions/setup-node@v2 |
| 18 | + with: |
| 19 | + node-version: '12.x' |
| 20 | + |
| 21 | + - name: Cache file |
| 22 | + uses: actions/cache@v2 |
| 23 | + with: |
| 24 | + path: | |
| 25 | + node_modules |
| 26 | + %APPDATA%\npm-cache |
| 27 | + %LOCALAPPDATA%\electron\Cache |
| 28 | + %LOCALAPPDATA%\electron-builder\Cache |
| 29 | + key: ${{ runner.os }}-build-caches-${{ hashFiles('**/package-lock.json') }} |
| 30 | + restore-keys: | |
| 31 | + ${{ runner.os }}-build- |
| 32 | +
|
| 33 | + - name: Install Dependencies |
| 34 | + run: npm install |
| 35 | + |
| 36 | + - name: Build & Release |
| 37 | + run: npm run publish:dev |
| 38 | + env: |
| 39 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 40 | + BT_TOKEN: ${{ secrets.BT_TOKEN }} |
| 41 | + |
| 42 | + Mac: |
| 43 | + name: Mac |
| 44 | + runs-on: macos-latest |
| 45 | + steps: |
| 46 | + - name: Check out git repository |
| 47 | + uses: actions/checkout@v2 |
| 48 | + |
| 49 | + - name: Install Node.js |
| 50 | + uses: actions/setup-node@v2 |
| 51 | + with: |
| 52 | + node-version: '12.x' |
| 53 | + |
| 54 | + - name: Cache file |
| 55 | + uses: actions/cache@v2 |
| 56 | + with: |
| 57 | + path: | |
| 58 | + node_modules |
| 59 | + $HOME/.cache/electron |
| 60 | + $HOME/.cache/electron-builder |
| 61 | + $HOME/.npm/_prebuilds |
| 62 | + key: ${{ runner.os }}-build-caches-${{ hashFiles('**/package-lock.json') }} |
| 63 | + restore-keys: | |
| 64 | + ${{ runner.os }}-build- |
| 65 | +
|
| 66 | + - name: Install Dependencies |
| 67 | + run: npm install |
| 68 | + |
| 69 | + - name: Build & Release |
| 70 | + run: npm run publish:gh:mac |
| 71 | + env: |
| 72 | + ELECTRON_CACHE: $HOME/.cache/electron |
| 73 | + ELECTRON_BUILDERCACHE: $HOME/.cache/electron-builder |
| 74 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 75 | + BT_TOKEN: ${{ secrets.BT_TOKEN }} |
| 76 | + |
| 77 | + Linux: |
| 78 | + name: Linux |
| 79 | + runs-on: ubuntu-latest |
| 80 | + steps: |
| 81 | + - name: Install package |
| 82 | + run: sudo apt-get install -y rpm libarchive-tools |
| 83 | + |
| 84 | + - name: Check out git repository |
| 85 | + uses: actions/checkout@v2 |
| 86 | + |
| 87 | + - name: Install Node.js |
| 88 | + uses: actions/setup-node@v2 |
| 89 | + with: |
| 90 | + node-version: '12.x' |
| 91 | + |
| 92 | + - name: Cache file |
| 93 | + uses: actions/cache@v2 |
| 94 | + with: |
| 95 | + path: | |
| 96 | + node_modules |
| 97 | + $HOME/.cache/electron |
| 98 | + $HOME/.cache/electron-builder |
| 99 | + $HOME/.npm/_prebuilds |
| 100 | + key: ${{ runner.os }}-build-caches-${{ hashFiles('**/package-lock.json') }} |
| 101 | + restore-keys: | |
| 102 | + ${{ runner.os }}-build- |
| 103 | +
|
| 104 | + - name: Install Dependencies |
| 105 | + run: npm install |
| 106 | + |
| 107 | + - name: Build & Release |
| 108 | + run: npm run publish:gh:linux |
| 109 | + env: |
| 110 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 111 | + BT_TOKEN: ${{ secrets.BT_TOKEN }} |
0 commit comments