Skip to content

Merge pull request #11 from urbanterror/master #1

Merge pull request #11 from urbanterror/master

Merge pull request #11 from urbanterror/master #1

name: Build and deploy
on: [push]
jobs:
Build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Build with Gradle
run: ./gradlew build
- name: Deploy jar to server
uses: garygrossgarten/github-action-scp@release
with:
local: PickupBot.jar
remote: /home/pug/PickupDiscord/PickupBot.jar
host: ${{ secrets.HOST }}
username: ${{ secrets.SSH_USER }}
password: ${{ secrets.SSH_PASSWORD }}