Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
aNNiMON authored Oct 17, 2020
2 parents 0288b95 + 896ad75 commit d5d1847
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: build

on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build with Gradle
run: chmod +x gradlew && ./gradlew build
34 changes: 34 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: deploy

on:
workflow_dispatch:
create:
tags: [v*]

jobs:
build:
runs-on: ubuntu-latest

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
# Upload from data to production server
- name: Upload app to server
uses: garygrossgarten/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
password: ${{ secrets.SSH_PASS }}
port: ${{ secrets.SSH_PORT }}
local: "build/libs"
remote: "bots/similar-images-bot"

0 comments on commit d5d1847

Please sign in to comment.