Merge pull request #940 from jijojosephk/issue-933 #410
Workflow file for this run
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
name: Build & Release | |
env: | |
GH_TOKEN: ${{ SECRETS.GITHUB_TOKEN }} | |
on: push | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
linux_x64: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v2 | |
- name: Install Node.js, NPM and Yarn | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- name: Build | |
run: yarn --link-duplicates --pure-lockfile | |
- name: Release | |
if: contains(github.ref, 'develop') | |
run: yarn dist:linux:x64 -- --publish always | |
linux_arm64: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v2 | |
- name: Install Node.js, NPM and Yarn | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- name: Build | |
run: yarn --link-duplicates --pure-lockfile | |
- name: Release | |
if: contains(github.ref, 'develop') | |
run: yarn dist:linux:arm64 -- --publish always | |
linux_arm: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v2 | |
- name: Install Node.js, NPM and Yarn | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- name: Build | |
run: yarn --link-duplicates --pure-lockfile | |
- name: Release | |
if: contains(github.ref, 'develop') | |
run: yarn dist:linux:arm -- --publish always | |
dmg: | |
runs-on: macos-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v2 | |
- name: Install Node.js, NPM and Yarn | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- name: Build | |
run: yarn --link-duplicates --pure-lockfile | |
- name: Release | |
if: contains(github.ref, 'develop') | |
run: yarn dist:mac -- --publish always | |
exe: | |
runs-on: windows-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v2 | |
- name: Install Node.js, NPM and Yarn | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- name: Build | |
run: yarn --link-duplicates --pure-lockfile | |
- name: Release | |
if: contains(github.ref, 'develop') | |
run: yarn dist:windows -- --publish always |