Skip to content

Commit

Permalink
Merge branch 'v2' of https://github.com/langhuihui/jessibuca into v2
Browse files Browse the repository at this point in the history
  • Loading branch information
bosscheng committed Aug 19, 2021
2 parents 43fa5d7 + 1538653 commit be5db62
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@

name: CI

# Controls when the action will run.
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the v2 branch
push:
branches: [ v2 ]
pull_request:
branches: [ v2 ]
create:
tags:
- v*

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -24,16 +27,24 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Setup Node.js environment
uses: actions/[email protected]
with:
# Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0
node-version: 14.x


- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: node_modules
key: ${{ env.cache-name }}-${{ hashFiles('**/package.json') }}

- name: npm install
run: npm install

- name: build
run: npm run build:demo

Expand All @@ -45,3 +56,13 @@ jobs:
host: monibuca.com
username: root
privateKey: ${{ secrets.PEM }}

- name: zip
if: startsWith(github.ref, 'refs/tags/')
run: zip -r ./demo.zip demo/public/*

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: "demo.zip"

0 comments on commit be5db62

Please sign in to comment.