Added build config
All checks were successful
Maven Beta Build / build-and-release (push) Successful in 12m34s
All checks were successful
Maven Beta Build / build-and-release (push) Successful in 12m34s
This commit is contained in:
64
.gitea/workflows/build.yaml
Normal file
64
.gitea/workflows/build.yaml
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
|
||||||
|
name: Maven Beta Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "**"
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Oracle JDK 25
|
||||||
|
uses: actions/setup-java@v4
|
||||||
|
with:
|
||||||
|
distribution: oracle
|
||||||
|
java-version: "25"
|
||||||
|
cache: maven
|
||||||
|
|
||||||
|
- name: Install Maven
|
||||||
|
run: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y maven
|
||||||
|
|
||||||
|
- name: Check Java and Maven versions
|
||||||
|
run: |
|
||||||
|
java --version
|
||||||
|
mvn --version
|
||||||
|
|
||||||
|
- name: Build with Maven
|
||||||
|
run: mvn --batch-mode clean package
|
||||||
|
|
||||||
|
# Pull requests only verify that the project builds successfully.
|
||||||
|
# A beta release is created only for regular push events.
|
||||||
|
- name: Create beta release
|
||||||
|
if: ${{ gitea.event_name == 'push' }}
|
||||||
|
uses: akkuman/gitea-release-action@v1
|
||||||
|
with:
|
||||||
|
server_url: ${{ gitea.server_url }}
|
||||||
|
token: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
|
||||||
|
tag_name: beta-${{ gitea.run_number }}
|
||||||
|
name: Anti-Inventories Beta ${{ gitea.run_number }}
|
||||||
|
|
||||||
|
target_commitish: ${{ gitea.sha }}
|
||||||
|
|
||||||
|
body: |
|
||||||
|
Automatic beta build of Anti-Inventories.
|
||||||
|
|
||||||
|
Commit: ${{ gitea.sha }}
|
||||||
|
Branch: ${{ gitea.ref_name }}
|
||||||
|
Build: ${{ gitea.run_number }}
|
||||||
|
|
||||||
|
prerelease: true
|
||||||
|
draft: false
|
||||||
|
|
||||||
|
files: |
|
||||||
|
target/*.jar
|
||||||
|
|
||||||
Reference in New Issue
Block a user