-
Notifications
You must be signed in to change notification settings - Fork 19
29 lines (28 loc) · 1004 Bytes
/
rm-dev.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
name: Remove Dev
on:
workflow_dispatch:
inputs:
model_name:
required: true
description: Model supported by sentence-transformers such as intfloat/e5-large-v2, sentence-transformers/all-MiniLM-L6-v2, sentence-transformers/all-mpnet-base-v2
jobs:
rm-dev:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup NodeJS 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install Serverless Framework
run: npm install -g serverless
- name: Serverless AWS authentication
run: sls config credentials --provider aws --key ${{ secrets.AWS_KEY }} --secret ${{ secrets.AWS_SECRET }}
- name: Remove Lambda functions
run: >
SERVICE=$(echo "${{ github.event.inputs.model_name }}" | cut -d'/' -f2 | tr '.' '-')
MODEL=${{ github.event.inputs.model_name }}
MEMORY_SIZE=128
NORMALIZE_EMBEDDINGS=
VERBOSE=
sls remove