Skip to content

Commit 787781d

Browse files
authored
fix syntax
1 parent 527c92c commit 787781d

File tree

1 file changed

+11
-23
lines changed

1 file changed

+11
-23
lines changed

.github/workflows/django.yml

+11-23
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,7 @@ jobs:
1616
python-version: [3.9, '3.10']
1717

1818
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
3220
run: |
3321
mkdir -p ~/.ssh/
3422
echo "$SSH_KEY" > ~/.ssh/production.key
@@ -45,13 +33,13 @@ jobs:
4533
SSH_KEY: ${{ secrets.STAGING_SSH_KEY }}
4634
SSH_HOST: ${{ secrets.STAGING_SSH_HOST }}
4735
- 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

Comments
 (0)