Skip to content

build: migrate from travis-ci to github actions #4

build: migrate from travis-ci to github actions

build: migrate from travis-ci to github actions #4

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
release:
types: [created]
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: latest
cache: yarn
- name: Build
run: |
yarn install
BUILD_MODE=push
if [[ "$GITHUB_REF_TYPE" == "tag" ]]; then
BUILD_TYPE=tag
elif [[ "$GITHUB_REF" == refs/pull/* ]]; then
BUILD_TYPE=pull_request
fi
script/ci-build.sh "$BUILD_MODE"
- name: Upload asar
uses: actions/upload-artifact@v3
with:
name: asar
path: build/*.asar