File tree Expand file tree Collapse file tree 1 file changed +35
-4
lines changed
Expand file tree Collapse file tree 1 file changed +35
-4
lines changed Original file line number Diff line number Diff line change 1- steps :
2- - name : Environment
3- env : # Or as an environment variable
4- JBOND_BOT_TOKEN : ${{ secrets.JBOND_BOT_TOKEN }}
1+ name : " CI"
2+ on :
3+ push :
4+ branches : ["master"]
5+ pull_request :
6+ branches : ["master"]
7+
8+ jobs :
9+ deploy :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Checkout code
13+ uses : actions/checkout@v3
14+ - name : Set up Python
15+ # This is the version of the action for setting up Python, not the Python version.
16+ uses : actions/setup-python@v5
17+ with :
18+ # Semantic version range syntax or exact version of a Python version
19+ python-version : ' 3.x'
20+ # Optional - x64 or x86 architecture, defaults to x64
21+ architecture : ' x64'
22+ - name : Environment
23+ env : # Or as an environment variable
24+ JBOND_BOT_TOKEN : ${{ secrets.JBOND_BOT_TOKEN }}
25+ - name : Run command on remote server
26+ 27+ with :
28+ host : ${{secrets.JBOND_SSH_HOST}}
29+ user : ${{secrets.JBOND_SSH_USER}}
30+ private_key : ${{secrets.JBOND_SSH_PRIVATE_KEY}}
31+ command : |
32+ cd /opt;
33+ git clone https://github.com/andrevis/jbond.git;
34+ git checkout master;
35+
You can’t perform that action at this time.
0 commit comments