diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml new file mode 100644 index 0000000..3ae2c7d --- /dev/null +++ b/.gitea/workflows/main.yml @@ -0,0 +1,23 @@ +name: Java CI with Maven + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 21 + uses: actions/setup-java@v4 + with: + java-version: '21' + distribution: 'temurin' + cache: maven + - uses: stCarolas/setup-maven@v5 + - name: Build with Maven + run: mvn -B package --file pom.xml + - name: Release + uses: https://gitea.com/actions/release-action@main + with: + files: ./target/fantasysmp*.jar + api_key: '${{secrets.RELEASE_TOKEN}}' \ No newline at end of file