Make workflow file
This commit is contained in:
parent
d4ddc609b3
commit
14f0ff59c5
55
.gitea/workflows/build.yml
Normal file
55
.gitea/workflows/build.yml
Normal file
@ -0,0 +1,55 @@
|
||||
name: build
|
||||
on:
|
||||
pull_request: {}
|
||||
push: {}
|
||||
workflow_dispatch: {}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
env:
|
||||
RUN_NUMBER: ${{ gitea.run_number }}
|
||||
strategy:
|
||||
matrix:
|
||||
version: [ '1.0.2' ]
|
||||
minecraft: [ '1.21.4' ]
|
||||
java: [ '21' ]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup JDK ${{ matrix.java }}
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'oracle'
|
||||
java-version: ${{ matrix.java }}
|
||||
cache: 'gradle'
|
||||
|
||||
- name: Loom Cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: "**/.gradle/loom-cache"
|
||||
key: "${{ runner.os }}-gradle-${{ hashFiles('**/libs.versions.*', '**/*.gradle*', '**/gradle-wrapper.properties') }}"
|
||||
restore-keys: "${{ runner.os }}-gradle-"
|
||||
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@v4
|
||||
with:
|
||||
gradle-home-cache-cleanup: true
|
||||
|
||||
- name: Validate Gradle Wrapper Integrity
|
||||
uses: gradle/wrapper-validation-action@v2
|
||||
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew clean build --no-daemon
|
||||
|
||||
- name: Make release
|
||||
uses: akkuman/gitea-release-action@v1
|
||||
with:
|
||||
name: DonatePay Integration ${{ matrix.java }}-${{ gitea.run_number }} for ${{ matrix.minecraft }}
|
||||
tag_name: donpayintegplug-${{ matrix.java }}+${{ matrix.minecraft }}-${{ gitea.run_number }}
|
||||
md5sum: true
|
||||
sha256sum: true
|
||||
files: |-
|
||||
# *.jar
|
||||
build/libs/**
|
Loading…
Reference in New Issue
Block a user