Skip to content

Commit 8a5ab9a

Browse files
committed
test workflow
1 parent 503cdc3 commit 8a5ab9a

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build
2+
3+
4+
on:
5+
push:
6+
branches:
7+
- 'api2'
8+
9+
concurrency:
10+
group: ${{ github.workflow }}
11+
cancel-in-progress: false
12+
13+
jobs:
14+
15+
deploy:
16+
runs-on: ubuntu-latest
17+
steps:
18+
-
19+
name : Checkout
20+
uses : actions/checkout@v4
21+
-
22+
name : Configure SSH
23+
run : |
24+
mkdir -p ~/.ssh/
25+
echo "$SSH_KEY" >~/.ssh/api2.key
26+
chmod 600 ~/.ssh/api2.key
27+
cat >>~/.ssh/config <<END
28+
Host api2
29+
HostName api2.smoo.it
30+
User $SSH_USER
31+
IdentityFile ~/.ssh/api2.key
32+
StrictHostKeyChecking no
33+
END
34+
env:
35+
SSH_USER : ${{ secrets.API2_SSH_USER }}
36+
SSH_KEY : ${{ secrets.API2_SSH_KEY }}
37+
-
38+
name : Test
39+
run : ssh api2 'cd api2.smoo.it/ && ls -lah'

0 commit comments

Comments
 (0)