Skip to content

Commit 9346052

Browse files
committed
feat: added release ci action
1 parent aa9e347 commit 9346052

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/release.yaml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: WePY CI Build
2+
3+
on:
4+
push:
5+
branches:
6+
- 2.0.x
7+
tags:
8+
- @wepy/*@*
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [8.x, 10.x]
15+
steps:
16+
- name: Setup Linux Environment
17+
run: |
18+
sudo apt-get -qy update && sudo apt-get install -y expect
19+
- uses: actions/checkout@v2
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v1
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
- run: npm install
25+
- run: npm run bootstrap
26+
- run: npm run test
27+
- run: npm run bootstrap:prod
28+
- run: bash ./scripts/gen.sh
29+
- name: Coverage Report
30+
run: |
31+
npm install coveralls && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
32+
env:
33+
CI: true
34+
- name: Set Tag Variable
35+
id: vars
36+
run: echo ::set-output name=tag::${GITHUB_REF:10}
37+
- name: Check Tag
38+
env:
39+
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
40+
run: |
41+
echo $RELEASE_VERSION
42+
echo ${{ steps.vars.outputs.tag }}

0 commit comments

Comments
 (0)