Files
Anti-Inventories/.gitea/workflows/build.yaml
pavel444-byte 27b87ad8e5
Some checks failed
Maven Beta Build / release (push) Failing after 5m22s
Final fix to build action
2026-07-31 14:10:18 +05:00

53 lines
1.3 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: Maven Beta Build
on:
push:
branches:
- "**"
pull_request:
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 25
uses: actions/setup-java@v4
with:
distribution: oracle
java-version: "25"
cache: maven
- name: Build with Maven
run: mvn --batch-mode clean package
# На pull request мы только проверяем сборку.
# Beta-релиз создаётся только при обычном push.
- 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: |
Автоматическая beta-сборка Anti-Inventories.
Commit: ${{ gitea.sha }}
Branch: ${{ gitea.ref_name }}
Build: ${{ gitea.run_number }}
prerelease: true
draft: false
files: |
target/*.jar