This repository has been archived by the owner on Jul 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from setho246/25-Set-up-CI-pipeline
#25 set up ci pipeline
- Loading branch information
Showing
6 changed files
with
313 additions
and
9,216 deletions.
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,40 @@ | ||
name: Build | ||
on: | ||
# Trigger the workflow on push or pull request, | ||
# but only for the main branch | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build_on_mac: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@master | ||
with: | ||
node-version: 14 | ||
- name: install dependencies | ||
run: yarn install | ||
- name: build | ||
run: yarn run make | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: macos-output | ||
path: ./out/make/ | ||
|
||
build_on_win: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@master | ||
with: | ||
node-version: 14 | ||
- name: install dependencies | ||
run: yarn install | ||
- name: build | ||
run: yarn run make | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: windows-output | ||
path: ./out/make/ |
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,34 @@ | ||
name: Release | ||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
publish_on_mac: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@master | ||
with: | ||
node-version: 14 | ||
- name: install dependencies | ||
run: yarn install | ||
- name: publish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: yarn run publish | ||
|
||
publish_on_win: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@master | ||
with: | ||
node-version: 14 | ||
- name: install dependencies | ||
run: yarn install | ||
- name: publish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: yarn run publish |
Oops, something went wrong.