create-air-fabric/.gitea/workflows/build.yml
BitHeaven ccd632e0c3
Some checks failed
build / build (push) Failing after 20s
Again update workflow
2025-01-21 02:46:41 +05:00

45 lines
1.0 KiB
YAML

name: build
on:
pull_request: {}
push: {}
workflow_dispatch: {}
jobs:
build:
strategy:
matrix:
java: '17'
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: setup jdk ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: 'liberica'
java-version: ${{ matrix.java }}
- uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/loom-cache
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle-wrapper.properties') }}
- name: make gradle wrapper executable
run: chmod +x ./gradlew
- name: build
run: ./gradlew build
- name: Make release
uses: akkuman/gitea-release-action@v1
with:
name: Create Air Fabric 1.0-${{ gitea.run_id }} for 1.20.1
md5sum: true
sha256sum: true
files: |-
build/libs/**