Skip to content

Commit 490544c

Browse files
authored
ci: setup github actions
1 parent 9b5a741 commit 490544c

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/main.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
release:
8+
name: Release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
- name: Setup Node
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: 16
19+
- name: Install & Build
20+
run: |
21+
npm ci
22+
npm run build
23+
npm run build:docs
24+
- name: Deploy Docs
25+
uses: JamesIves/[email protected]
26+
with:
27+
branch: gh-pages
28+
folder: docs/.vuepress/dist
29+
- name: Release
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
33+
run: npx semantic-release

0 commit comments

Comments
 (0)