-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (26 loc) · 1.05 KB
/
azure-functions-app-python.yml
File metadata and controls
31 lines (26 loc) · 1.05 KB
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
name: Update Code To Note
on:
push:
branches: ["main"]
env:
AZURE_FUNCTIONAPP_NAME: 'your-app-name' # set this to your function app name on Azure
AZURE_FUNCTIONAPP_PACKAGE_PATH: '.' # set this to the path to your function app project, defaults to the repository root
PYTHON_VERSION: '3.10' # set this to the python version to use (e.g. '3.6', '3.7', '3.8')
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: SSH to remote server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: |
sudo su -
git config --global user.email "gptkok@gmail.com"
git config --global user.name "wsdo"
git config --global --add safe.directory /home/wwwroot/code/auto-gpt-work
git config --global --add safe.directory /home/wwwroot/code/lecture-notes
sh /home/wwwroot/code/update-lecture-notes.sh