Skip to content

Commit d7caf4a

Browse files
authored
Create deploy.yml
1 parent f95f03c commit d7caf4a

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: deploy
2+
3+
on:
4+
create:
5+
tags: [v*]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Set up JDK 11
14+
uses: actions/setup-java@v1
15+
with:
16+
java-version: 11
17+
- name: Build app with Gradle
18+
run: chmod +x gradlew && ./gradlew shadowJar
19+
20+
- uses: actions/checkout@v2
21+
- name: Copy app to server
22+
uses: appleboy/[email protected]
23+
with:
24+
host: ${{ secrets.SSH_HOST }}
25+
username: ${{ secrets.SSH_USER }}
26+
password: ${{ secrets.SSH_PASS }}
27+
port: ${{ secrets.SSH_PORT }}
28+
source: "build/libs/SimilarImagesBot-1.0.2-all.jar"
29+
target: "bots/similar-images-bot"

0 commit comments

Comments
 (0)