Skip to content

Commit 4ad2de0

Browse files
committed
ci: update GitHub workflows
1 parent c31b990 commit 4ad2de0

File tree

2 files changed

+38
-9
lines changed

2 files changed

+38
-9
lines changed

.github/workflows/demo.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build demo app
2+
3+
on:
4+
push:
5+
branches: ["vue3"]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v3
17+
18+
- name: Set up Node.js
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: '22'
22+
23+
- name: Install dependencies
24+
run: npm install
25+
26+
- name: Build demo
27+
run: APP_BASE=/vue-data-table/demo npm run build:demo
28+
29+
- name: Deploy
30+
uses: peaceiris/actions-gh-pages@v4
31+
with:
32+
github_token: ${{ secrets.GITHUB_TOKEN }}
33+
publish_branch: demo
34+
publish_dir: ./demo
35+
destination_dir: demo
36+
commit_message: update demo
Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3-
4-
name: Node.js CI
1+
name: Automated tests
52

63
on:
74
push:
@@ -11,14 +8,10 @@ on:
118

129
jobs:
1310
build:
14-
1511
runs-on: ubuntu-latest
16-
1712
strategy:
1813
matrix:
1914
node-version: [16.x, 18.x, 20.x]
20-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
21-
2215
steps:
2316
- uses: actions/checkout@v3
2417
- name: Use Node.js ${{ matrix.node-version }}
@@ -28,4 +21,4 @@ jobs:
2821
cache: 'npm'
2922
- run: npm install
3023
- run: npm run build
31-
- run: npm run test
24+
- run: npm run test

0 commit comments

Comments
 (0)