Skip to content

Commit 7edad77

Browse files
authored
Create test.yaml
test: add deploy script
1 parent c41eff3 commit 7edad77

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/test.yaml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- master # default branch
7+
8+
jobs:
9+
pages:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Use Node.js 18
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: "18"
19+
- name: Cache NPM dependencies
20+
uses: actions/cache@v2
21+
with:
22+
path: node_modules
23+
key: ${{ runner.OS }}-npm-cache
24+
restore-keys: |
25+
${{ runner.OS }}-npm-cache
26+
- name: Install Dependencies
27+
run: npm install
28+
- name: MakeCategory
29+
run: |
30+
cd ./public
31+
./makeCategory
32+
cd ../
33+
- name: Build
34+
run: npm run build
35+
- name: Deploy
36+
run: |
37+
npm run preview

0 commit comments

Comments
 (0)