-
Notifications
You must be signed in to change notification settings - Fork 37
41 lines (32 loc) · 935 Bytes
/
lean.yml
File metadata and controls
41 lines (32 loc) · 935 Bytes
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
name: Test Deploy to LeanEngine
on:
push:
branches: [ master ]
paths-ignore:
- '**.md'
pull_request:
branches: [ master ]
paths-ignore:
- '**.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install lean-cli
run: |
wget --quiet -O lean https://github.com/leancloud/lean-cli/releases/download/v0.23.0/lean-linux-x64
sudo mv lean /usr/local/bin/lean
chmod a+x /usr/local/bin/lean
- name: Login
env:
LC_USER: ${{ secrets.LEANCLICI }}
PASSWORD: ${{ secrets.PASSWORD }}
run: lean login --username "$LC_USER" --password "$PASSWORD" --region US
- name: Checkout code
uses: actions/checkout@v2
- name: Connect
env:
APPID: ${{ secrets.PYTHON_FLASK_CI }}
run: lean switch --region US --group web "$APPID"
- name: Deploy
run: lean deploy