1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-18 07:31:33 +03:00
tabby/.github/workflows/linux.yml

77 lines
1.7 KiB
YAML
Raw Normal View History

2019-08-26 23:21:23 +03:00
name: Linux Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
2019-08-30 16:59:59 +03:00
- name: Install Node
2019-08-26 23:21:23 +03:00
uses: actions/setup-node@v1
with:
version: 10
2019-08-30 16:41:04 +03:00
- name: Install deps
2019-08-26 23:21:23 +03:00
run: |
2019-10-14 06:23:09 +03:00
npm i -g yarn@1.19.1
2019-08-26 23:21:23 +03:00
cd app
yarn
cd ..
rm app/node_modules/.yarn-integrity
yarn
2019-08-30 16:41:04 +03:00
- name: Build native deps
run: scripts/build-native.js
2019-08-30 16:59:59 +03: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 16:41:04 +03:00
- name: Build packages
2019-08-30 18:06:44 +03:00
run: scripts/build-linux.js
2019-08-26 23:21:23 +03:00
env:
2019-08-30 18:06:44 +03:00
DEBUG: electron-builder,electron-builder:*
2019-08-26 23:21:23 +03:00
GH_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Package artifacts
run: |
mkdir artifact-deb
2019-08-30 18:44:38 +03:00
mv dist/*.deb artifact-deb/ || true
2019-08-26 23:21:23 +03:00
mkdir artifact-rpm
2019-08-30 18:44:38 +03:00
mv dist/*.rpm artifact-rpm/ || true
2019-08-26 23:21:23 +03:00
mkdir artifact-snap
2019-08-30 18:44:38 +03:00
mv dist/*.snap artifact-snap/ || true
2019-08-26 23:21:23 +03:00
mkdir artifact-tar.gz
2019-08-30 18:44:38 +03:00
mv dist/*.tar.gz artifact-tar.gz/ || true
2019-08-26 23:21:23 +03: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