Skip to content

Manual Deploy to PROD YaCloud Functions #6

Manual Deploy to PROD YaCloud Functions

Manual Deploy to PROD YaCloud Functions #6

name: Manual Deploy to PROD YaCloud Functions
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Deploy Function
id: sls-func
uses: yc-actions/yc-sls-function@v2
with:
yc-sa-json-credentials: ${{ secrets.YC_SA_JSON_CREDENTIALS }}
folder-id: ${{ secrets.FOLDER_ID }}
function-name: 'alice-chess-stable'
runtime: 'python39'
memory: '4096Mb'
entrypoint: 'alice_serverless.handler'
environment: |
CHESS_API_KEY=${{ secrets.CHESS_API_KEY }}
DEBUG=True
COUNT=1
include: |
*.py
handlers/*.py
request_validators/*.py
requirements.txt
exclude: |
**/*.ts
**/tests/**
**/_prev-stable/**
tests/
_prev-stable/
.github/**
venv/**
.gitignore
LICENSE