Skip to content

Commit 54262eb

Browse files
authored
Update env.yml
1 parent 7ddb05b commit 54262eb

File tree

1 file changed

+35
-4
lines changed

1 file changed

+35
-4
lines changed

.github/workflows/env.yml

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,35 @@
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+
uses: D3rHase/[email protected]
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+

0 commit comments

Comments
 (0)