mirror of
https://github.com/annimon-tutorials/Similar-Images-Bot.git
synced 2024-09-20 03:34:19 +03:00
Update deploy.yml
This commit is contained in:
parent
1f2f456861
commit
ea66ba5c3c
13
.github/workflows/deploy.yml
vendored
13
.github/workflows/deploy.yml
vendored
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user