Files
Anti-Inventories/.gitea/workflows/build.yaml
Workflow config file is invalid. Please check your config file: yaml: line 13: did not find expected '-' indicator
2026-07-31 15:28:30 +05:00

62 lines
1.5 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: Install Maven
run: |
apt-get update
apt-get install -y maven
- name: Check versions
run: |
java --version
mvn --version
- 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