Skip to content

Commit 70cc3a4

Browse files
committed
add CI
1 parent 714484a commit 70cc3a4

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/build.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
# Controls when the workflow will run
4+
on:
5+
push:
6+
pull_request:
7+
workflow_dispatch:
8+
schedule:
9+
- cron: "13 01 * * *"
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: actions/setup-node@v3
18+
- run: npm update
19+
- run: ant
20+
21+
- name: Upload artifacts
22+
uses: actions/upload-artifact@v3
23+
with:
24+
name: build
25+
path: build/*.xar
26+
- name: Release
27+
uses: softprops/action-gh-release@v1
28+
if: startsWith(github.ref, 'refs/tags/')
29+
with:
30+
files: build/*.xar
31+

0 commit comments

Comments
 (0)