Skip to content

Commit d87fd5e

Browse files
authored
Create build.yml
1 parent 0e88738 commit d87fd5e

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build Plugins
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: 18
20+
21+
- name: Install dependencies
22+
run: npm install
23+
24+
- name: Build plugins
25+
run: npm run build
26+
27+
- name: Deploy to plugins branch
28+
uses: peaceiris/actions-gh-pages@v3
29+
with:
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
31+
publish_branch: plugins
32+
publish_dir: ./.dist
33+
destination_dir: v3.0.0/.dist

0 commit comments

Comments
 (0)