2019-08-26 20:21:23 +00:00
|
|
|
name: Linux Build
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
|
2019-08-30 13:59:59 +00:00
|
|
|
- name: Install Node
|
2019-08-26 20:21:23 +00:00
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
version: 10
|
|
|
|
|
2019-08-30 13:41:04 +00:00
|
|
|
- name: Install deps
|
2019-08-26 20:21:23 +00:00
|
|
|
run: |
|
|
|
|
cd app
|
|
|
|
yarn
|
|
|
|
cd ..
|
|
|
|
rm app/node_modules/.yarn-integrity
|
|
|
|
yarn
|
2019-08-30 13:41:04 +00:00
|
|
|
|
|
|
|
- name: Build native deps
|
|
|
|
run: scripts/build-native.js
|
|
|
|
|
2019-08-30 13:59:59 +00:00
|
|
|
- name: Build typings
|
|
|
|
run: yarn run build:typings
|
|
|
|
|
|
|
|
- name: Webpack
|
|
|
|
run: yarn run build
|
|
|
|
|
|
|
|
- name: Prepackage plugins
|
|
|
|
run: scripts/prepackage-plugins.js
|
2019-08-30 13:41:04 +00:00
|
|
|
|
|
|
|
- name: Build packages
|
2019-08-30 15:06:44 +00:00
|
|
|
run: scripts/build-linux.js
|
2019-08-26 20:21:23 +00:00
|
|
|
env:
|
2019-08-30 15:06:44 +00:00
|
|
|
DEBUG: electron-builder,electron-builder:*
|
2019-08-26 20:21:23 +00:00
|
|
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
|
|
|
|
|
|
- name: Package artifacts
|
|
|
|
run: |
|
|
|
|
mkdir artifact-deb
|
2019-08-30 15:44:38 +00:00
|
|
|
mv dist/*.deb artifact-deb/ || true
|
2019-08-26 20:21:23 +00:00
|
|
|
mkdir artifact-rpm
|
2019-08-30 15:44:38 +00:00
|
|
|
mv dist/*.rpm artifact-rpm/ || true
|
2019-08-26 20:21:23 +00:00
|
|
|
mkdir artifact-snap
|
2019-08-30 15:44:38 +00:00
|
|
|
mv dist/*.snap artifact-snap/ || true
|
2019-08-26 20:21:23 +00:00
|
|
|
mkdir artifact-tar.gz
|
2019-08-30 15:44:38 +00:00
|
|
|
mv dist/*.tar.gz artifact-tar.gz/ || true
|
2019-08-26 20:21:23 +00:00
|
|
|
|
|
|
|
- uses: actions/upload-artifact@master
|
|
|
|
name: Upload DEB
|
|
|
|
with:
|
|
|
|
name: Linux .deb
|
|
|
|
path: artifact-deb
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@master
|
|
|
|
name: Upload RPM
|
|
|
|
with:
|
|
|
|
name: Linux .rpm
|
|
|
|
path: artifact-rpm
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@master
|
|
|
|
name: Upload Snap
|
|
|
|
with:
|
|
|
|
name: Linux .snap
|
|
|
|
path: artifact-snap
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@master
|
|
|
|
name: Upload tarball
|
|
|
|
with:
|
|
|
|
name: Linux tarball
|
|
|
|
path: artifact-tar.gz
|