-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
92 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
if: "!contains(github.event.head_commit.message, 'ci skip')" | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: "14" | ||
|
||
- name: Install packages | ||
run: yarn | ||
|
||
- name: Build | ||
run: yarn electron:build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: publish-build | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
if: "!contains(github.event.head_commit.message, 'publish-build skip')" | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '14' | ||
|
||
- name: Install packages | ||
run: yarn | ||
|
||
- name: Windows build | ||
if: ${{ matrix.os == 'windows-latest' }} | ||
shell: powershell | ||
run: | | ||
$env:GH_TOKEN=${{ secrets.GITHUB_TOKEN }} | ||
yarn electron:build --windows 7z --publish always | ||
- name: MacOS build | ||
if: ${{ matrix.os == 'macos-latest' }} | ||
shell: bash | ||
run: | | ||
export CSC_IDENTITY_AUTO_DISCOVERY=false | ||
export GH_TOKEN=${{ secrets.GITHUB_TOKEN }} | ||
yarn electron:build --macos 7z --publish always | ||
- name: Linux build | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
shell: bash | ||
run: | | ||
export GH_TOKEN=${{ secrets.GITHUB_TOKEN }} | ||
yarn electron:build --linux 7z --publish always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters