diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..e6bbe0d --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,32 @@ +name: build + +on: + push: + branches: [ "**" ] + pull_request: + branches: [ "**" ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up JDK 19 + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: "19" + cache: gradle + + - name: Build + run: ./gradlew -q assemble + + deploy: + runs-on: ubuntu-latest + needs: build + steps: + - name: Trigger deploy webhook + run: | + curl -sS -X POST http://127.0.0.1:9000/hooks/deploy-trisolarisserver