-
-
Notifications
You must be signed in to change notification settings - Fork 24
34 lines (29 loc) · 924 Bytes
/
gradle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Java CI
on: [ push ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v2
with:
distribution: zulu
java-version: 8
- name: Change Gradlew file permissions
run: chmod +x gradlew
- name: Setup Workspace
run: ./gradlew setupCiWorkspace
- name: Build & Compile
run: ./gradlew build --stacktrace
# - name: Send Webhook Notification
# if: always()
# env:
# JOB_STATUS: ${{ job.status }}
# WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK }}
# 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