generated from Respo/respo-moonbit-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (51 loc) · 1.4 KB
/
check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: check
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: install
run: |
curl -fsSL https://cli.moonbitlang.com/install/unix.sh | bash
echo "$HOME/.moon/bin" >> $GITHUB_PATH
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
- name: moon check
run: moon update && moon check
# - name: moon info
# run: |
# moon info
# git diff --exit-code
- name: moon test
run: |
moon build --target js --debug
- name: "compiles to js"
run: yarn && yarn vite build --base=./
# - name: moon bundle
# run: moon bundle
# - name: check core size
# run: ls -alh `find ./target/bundle -name *.core`
# - name: format diff
# run: |
# moon fmt
# git diff
- name: Deploy to server
id: deploy
uses: Pendect/[email protected]
env:
DEPLOY_KEY: ${{secrets.rsync_private_key}}
with:
flags: "-avzr --progress"
options: ""
ssh_options: ""
src: "dist/*"
dest: "[email protected]:/web-assets/repo/${{ github.repository }}"
- name: Display status from deploy
run: echo "${{ steps.deploy.outputs.status }}"