mirror of
https://github.com/Eugeny/tabby
synced 2024-12-13 23:02:41 +00:00
71 lines
1.6 KiB
YAML
71 lines
1.6 KiB
YAML
name: Linux Build
|
|
on: [push, pull_request]
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Install deps
|
|
run: |
|
|
npm i -g yarn@1.19.1
|
|
cd app
|
|
yarn
|
|
cd ..
|
|
rm app/node_modules/.yarn-integrity
|
|
yarn
|
|
|
|
- name: Build native deps
|
|
run: scripts/build-native.js
|
|
|
|
- name: Build typings
|
|
run: yarn run build:typings
|
|
|
|
- name: Webpack
|
|
run: yarn run build
|
|
|
|
- name: Prepackage plugins
|
|
run: scripts/prepackage-plugins.js
|
|
|
|
- name: Build packages
|
|
run: scripts/build-linux.js
|
|
env:
|
|
DEBUG: electron-builder,electron-builder:*
|
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
|
|
- name: Package artifacts
|
|
run: |
|
|
mkdir artifact-deb
|
|
mv dist/*.deb artifact-deb/ || true
|
|
mkdir artifact-rpm
|
|
mv dist/*.rpm artifact-rpm/ || true
|
|
mkdir artifact-snap
|
|
mv dist/*.snap artifact-snap/ || true
|
|
mkdir artifact-tar.gz
|
|
mv dist/*.tar.gz artifact-tar.gz/ || true
|
|
|
|
- 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
|