Ascension/.github/workflows/build.yaml

32 lines
893 B
YAML
Raw Normal View History

2023-05-19 19:18:47 +02:00
name: Build
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
2024-06-22 10:12:13 +02:00
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
2023-05-19 19:18:47 +02:00
with:
distribution: 'temurin'
java-version: 17
cache: 'gradle'
2024-06-22 10:12:13 +02:00
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
2023-05-19 19:18:47 +02:00
- name: Build with Gradle
run: ./gradlew build --no-daemon
env:
DISCORDSRV_AUTOTEST_BOT_TOKEN: ${{ secrets.DISCORDSRV_AUTOTEST_BOT_TOKEN }}
DISCORDSRV_AUTOTEST_CHANNEL_ID: ${{ secrets.DISCORDSRV_AUTOTEST_CHANNEL_ID }}
2024-06-20 23:02:43 +02:00
DISCORDSRV_AUTOTEST_FORUM_ID: ${{ secrets.DISCORDSRV_AUTOTEST_FORUM_ID }}
2023-05-19 19:18:47 +02:00
- name: Upload Build Artifacts
2024-06-22 15:19:20 +02:00
uses: actions/upload-artifact@v4
2023-05-19 19:18:47 +02:00
with:
name: build-artifacts
path: "jars/*.jar"