16
16
python-version : [3.9, '3.10']
17
17
18
18
steps :
19
- - uses : actions/checkout@v4
20
- # - name: Set up Python ${{ matrix.python-version }}
21
- # uses: actions/setup-python@v3
22
- # with:
23
- # python-version: ${{ matrix.python-version }}
24
- # - name: Install Dependencies
25
- # run: |
26
- # python -m pip install --upgrade pip
27
- # pip install -r requirements/production.txt
28
- # - name: Run Tests
29
- # run: |
30
- # python manage.py test
31
- - name : Configure SSH
19
+ - name : Configure SSH
32
20
run : |
33
21
mkdir -p ~/.ssh/
34
22
echo "$SSH_KEY" > ~/.ssh/production.key
@@ -45,13 +33,13 @@ jobs:
45
33
SSH_KEY : ${{ secrets.STAGING_SSH_KEY }}
46
34
SSH_HOST : ${{ secrets.STAGING_SSH_HOST }}
47
35
- name : Deploy to Server
48
- run : |
49
- ssh production '
50
- cd /home/django/bakeup/ &&
51
- git pull origin main &&
52
- source /home/django/djangoenv/bin/activate &&
53
- pip install -r requirements/production.txt &&
54
- python manage.py migrate &&
55
- python collectstatic --noinput &&
56
- supervisorctl restart django
57
- '
36
+ run : |
37
+ ssh production '
38
+ cd /home/django/bakeup/ &&
39
+ git pull origin main &&
40
+ source /home/django/djangoenv/bin/activate &&
41
+ pip install -r requirements/production.txt &&
42
+ python manage.py migrate &&
43
+ python collectstatic --noinput &&
44
+ supervisorctl restart django
45
+ '
0 commit comments