Update deploy.yml

This commit is contained in:
Victor Melnik 2020-10-08 22:17:54 +03:00 committed by GitHub
parent 1f2f456861
commit ea66ba5c3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,13 +11,22 @@ jobs:
steps:
- uses: actions/checkout@v2
# Build release
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build app with Gradle
run: chmod +x gradlew && ./gradlew shadowJar
# Download from build to data
- uses: actions/upload-artifact@v2
with:
path: build/libs/*.jar
# TODO remove
- name: Display structure of downloaded files
run: ls -R
working-directory: build/libs
# Upload from data to production server
- uses: actions/checkout@v2
- name: Copy app to server
uses: appleboy/scp-action@v0.1.1
@ -26,5 +35,5 @@ jobs:
username: ${{ secrets.SSH_USER }}
password: ${{ secrets.SSH_PASS }}
port: ${{ secrets.SSH_PORT }}
source: "build/libs/SimilarImagesBot-1.0.2-all.jar"
source: "build/libs/"
target: "bots/similar-images-bot"