Files
TrisolarisServer/.gitea/workflows/build.yml
deploy 825b610e28
All checks were successful
build / build (push) Successful in 2m18s
build / deploy (push) Successful in 0s
Fix deploy webhook header
2026-01-26 17:22:18 +05:30

33 lines
674 B
YAML

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 build -x test --no-daemon --info --stacktrace
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Trigger deploy webhook
run: |
curl -sS -X POST -H "X-Gitea-Event: push" http://127.0.0.1:9000/hooks/deploy-trisolarisserver