-
Notifications
You must be signed in to change notification settings - Fork 3
33 lines (27 loc) · 811 Bytes
/
deploy.yml
File metadata and controls
33 lines (27 loc) · 811 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
name: Deploy
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Install Aliyun FC 2
run: |
sudo apt-get install python3-setuptools
sudo pip3 install -U aliyun-fc2 pip
- name: Deploy with Aliyun FC 2
env:
FUNCTION_COMPUTE_ARN: ${{ secrets.FUNCTION_COMPUTE_ARN }}
ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY_ID }}
SECRET_ACCESS_KEY: ${{ secrets.SECRET_ACCESS_KEY }}
run: |
pip3 install -t dist pandas==1.4.2
rm -rf dist/numpy*
cp -r src/* dist/
./setup.py deploy