name: Updater

on:
  push:
    branches:
      - master
    paths:
      - 'updater/**'
  pull_request:
    branches:
      - master
    paths:
      - 'updater/**'

jobs:

  build:
    name: Build
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: gradle/wrapper-validation-action@v1

      - uses: actions/setup-java@v3
        with:
          distribution: 'zulu'
          java-version: 17

      - uses: gradle/gradle-build-action@v2
        with:
          arguments: build
          build-root-directory: updater
