We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c772a7b commit 1cd5652Copy full SHA for 1cd5652
.github/workflows/django.yml
@@ -30,13 +30,13 @@ jobs:
30
END
31
- name: Deploy to Server
32
env:
33
- ROOT_DIR: ${{ ROOT_DIR }}
34
- ENV_DIR: ${{ ENV_DIR }}
+ ROOT_DIR: ${{ vars.ROOT_DIR }}
+ ENV_DIR: ${{ vars.ENV_DIR }}
35
run: |
36
ssh server '
37
- cd ${{ ROOT_DIR }} &&
+ cd $ROOT_DIR &&
38
git pull origin main &&
39
- source ${{ ENV_DIR }}bin/activate &&
+ source $ENV_DIRbin/activate &&
40
pip install -r requirements/production.txt &&
41
python manage.py migrate --settings=config.settings.production &&
42
python manage.py collectstatic --noinput --settings=config.settings.production &&
0 commit comments