Skip to content

Commit 0fd1ff2

Browse files
authored
Create update.yml
1 parent 962e1d5 commit 0fd1ff2

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/update.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Update ZenStack
2+
3+
env:
4+
DO_NOT_TRACK: '1'
5+
6+
on:
7+
workflow_dispatch:
8+
repository_dispatch:
9+
types: [zenstack-release]
10+
11+
jobs:
12+
update:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Update to latest ZenStack
18+
run: |
19+
git config --global user.name ymc9
20+
git config --global user.email [email protected]
21+
npm ci
22+
npm run up
23+
24+
- name: Build
25+
run: |
26+
npm run build
27+
28+
- name: Commit and push
29+
run: |
30+
git add .
31+
git commit -m "chore: update to latest ZenStack" || true
32+
git push || true

0 commit comments

Comments
 (0)