Merge remote-tracking branch 'origin/greg-dev' into greg-dev
This commit is contained in:
commit
16c948781a
2 changed files with 55 additions and 12 deletions
62
.github/workflows/maven.yml
vendored
62
.github/workflows/maven.yml
vendored
|
|
@ -1,17 +1,55 @@
|
||||||
name: Java CI
|
name: Hadder
|
||||||
|
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Set up JDK 1.13
|
||||||
|
uses: actions/setup-java@v1
|
||||||
|
with:
|
||||||
|
java-version: 1.13
|
||||||
|
- name: Build with Maven
|
||||||
|
run: mvn -B package --file pom.xml
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
steps:
|
needs: test
|
||||||
- uses: actions/checkout@v1
|
if: github.ref == 'refs/heads/master'
|
||||||
- name: Set up JDK 1.8
|
steps:
|
||||||
uses: actions/setup-java@v1
|
- uses: actions/checkout@v1
|
||||||
with:
|
- name: Set up JDK 1.13
|
||||||
java-version: 1.13
|
uses: actions/setup-java@v1
|
||||||
- name: Build with Maven
|
with:
|
||||||
run: mvn -B package --file pom.xml
|
java-version: 1.13
|
||||||
|
- name: Build Final Jar
|
||||||
|
run: mvn clean compile assembly:single
|
||||||
|
- name: Copy folder content recursively to remote
|
||||||
|
uses: garygrossgarten/github-action-scp@release
|
||||||
|
with:
|
||||||
|
local: ./target/Hadder-Build.jar
|
||||||
|
remote: /home/Bots/Hadder-Build.jar
|
||||||
|
host: ${{ secrets.HOST }}
|
||||||
|
username: ${{ secrets.USERNAME }}
|
||||||
|
password: ${{ secrets.PASSWORD }}
|
||||||
|
- name: executing remote ssh commands using password
|
||||||
|
uses: appleboy/ssh-action@master
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.HOST }}
|
||||||
|
username: ${{ secrets.USERNAME }}
|
||||||
|
password: ${{ secrets.PASSWORD }}
|
||||||
|
port: ${{ secrets.PORT }}
|
||||||
|
script: /home/Bots/deploy.sh
|
||||||
|
- name: Send Webhook Notification
|
||||||
|
if: always()
|
||||||
|
env:
|
||||||
|
JOB_STATUS: ${{ job.status }}
|
||||||
|
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
|
||||||
|
HOOK_OS_NAME: ${{ runner.os }}
|
||||||
|
WORKFLOW_NAME: ${{ github.workflow }}
|
||||||
|
run: |
|
||||||
|
git clone https://github.com/DiscordHooks/github-actions-discord-webhook.git webhook
|
||||||
|
bash webhook/send.sh $JOB_STATUS $WEBHOOK_URL
|
||||||
|
shell: bash
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
# Hadder
|
# Hadder
|
||||||
|
|
||||||
|
The Hadder Discord bot is a multi-purpose Discord Bot.
|
||||||
|
|
||||||
<a href="https://discord.gg/58My2dM"><img src="https://discordapp.com/api/guilds/448554629282922527/embed.png"/></a>
|
<a href="https://discord.gg/58My2dM"><img src="https://discordapp.com/api/guilds/448554629282922527/embed.png"/></a>
|
||||||
|
[](https://github.com/BigBotNetwork/Hadder)
|
||||||
|
|
||||||
|
<a href="https://discordextremelist.xyz/bots/Hadder"><img src="https://discordextremelist.xyz/api/bot/637002314162372639/widget"/></a>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue