This repository was archived by the owner on Feb 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change 12
12
runs-on : ubuntu-latest
13
13
strategy :
14
14
matrix :
15
- python-version : [3.8,3.9]
15
+ python-version : [3.8, 3.9]
16
16
steps :
17
17
- uses : actions/checkout@v4
18
18
- name : Set up Python ${{ matrix.python-version }}
31
31
needs : build
32
32
strategy :
33
33
matrix :
34
- python-version : [3.8,3.9]
34
+ python-version : [3.8, 3.9]
35
35
steps :
36
36
- uses : actions/checkout@v4
37
37
- name : Set up Python ${{ matrix.python-version }}
47
47
run : |
48
48
pytest
49
49
working-directory : ./CargoHub
50
+
51
+ # Deploy Job
52
+ deploy :
53
+ runs-on : ubuntu-latest
54
+ needs : test
55
+ steps :
56
+ - name : Checkout code
57
+ uses : actions/checkout@v4
58
+
59
+ - name : SSH into server and deploy
60
+ uses : appleboy/ssh-action@v0.1.0
61
+ with :
62
+ host : ${{ secrets.SERVER_IP }}
63
+ username : ${{ secrets.SERVER_USER }}
64
+ key : ${{ secrets.SERVER_SSH_KEY }}
65
+ script : |
66
+ cd /path/to/your/repo # Change to your Django project directory
67
+ git pull origin Refactoring # Pull the latest changes from the Refactoring branch
68
+ source /path/to/venv/bin/activate # Activate the virtual environment
69
+ pip install -r requirements.txt # Install any new dependen
You can’t perform that action at this time.
0 commit comments