Manual Deploy to PROD YaCloud Functions #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |