Skip to content

Commit ea66ba5

Browse files
authored
Update deploy.yml
1 parent 1f2f456 commit ea66ba5

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,22 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v2
14+
# Build release
1415
- name: Set up JDK 11
1516
uses: actions/setup-java@v1
1617
with:
1718
java-version: 11
1819
- name: Build app with Gradle
1920
run: chmod +x gradlew && ./gradlew shadowJar
20-
21+
# Download from build to data
22+
- uses: actions/upload-artifact@v2
23+
with:
24+
path: build/libs/*.jar
25+
# TODO remove
26+
- name: Display structure of downloaded files
27+
run: ls -R
28+
working-directory: build/libs
29+
# Upload from data to production server
2130
- uses: actions/checkout@v2
2231
- name: Copy app to server
2332
uses: appleboy/[email protected]
@@ -26,5 +35,5 @@ jobs:
2635
username: ${{ secrets.SSH_USER }}
2736
password: ${{ secrets.SSH_PASS }}
2837
port: ${{ secrets.SSH_PORT }}
29-
source: "build/libs/SimilarImagesBot-1.0.2-all.jar"
38+
source: "build/libs/"
3039
target: "bots/similar-images-bot"

0 commit comments

Comments
 (0)