create-air-fabric/.gitea/workflows/build.yml

45 lines
1.0 KiB
YAML
Raw Normal View History

name: build
on:
pull_request: {}
push: {}
workflow_dispatch: {}
jobs:
build:
strategy:
matrix:
2025-01-21 05:47:25 +08:00
java: [ '17' ]
runs-on: ubuntu-latest
steps:
- name: checkout repository
2025-01-21 05:39:28 +08:00
uses: actions/checkout@v4
- name: setup jdk ${{ matrix.java }}
2025-01-21 05:39:28 +08:00
uses: actions/setup-java@v4
with:
2025-01-21 05:39:28 +08:00
distribution: 'liberica'
java-version: ${{ matrix.java }}
2025-01-21 05:39:28 +08:00
- 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
2025-01-21 05:39:28 +08:00
- name: Make release
2025-01-21 05:46:41 +08:00
uses: akkuman/gitea-release-action@v1
with:
2025-01-21 05:45:47 +08:00
name: Create Air Fabric 1.0-${{ gitea.run_id }} for 1.20.1
2025-01-21 05:39:28 +08:00
md5sum: true
sha256sum: true
files: |-
build/libs/**