Spartan Weaponry Integration Work #776
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |