Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #50 from setho246/25-Set-up-CI-pipeline
Browse files Browse the repository at this point in the history
#25 set up ci pipeline
  • Loading branch information
setho246 authored Aug 25, 2021
2 parents 409675d + 2871c84 commit 7d0e352
Show file tree
Hide file tree
Showing 6 changed files with 313 additions and 9,216 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
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/
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
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
Loading

0 comments on commit 7d0e352

Please sign in to comment.