We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 503cdc3 commit 8a5ab9aCopy full SHA for 8a5ab9a
.github/workflows/deploy.yml
@@ -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