Armamem0t 9ce0894295
All checks were successful
Gitea Actions Build / build and releases (push) Successful in 45s
更新 .gitea/workflows/action.yaml
2025-06-26 21:21:38 +08:00

29 lines
1.1 KiB
YAML

name: Gitea Actions Build
run-name: ${{gitea.repository}} ${{gitea.sha}} ${{gitea.event.head_commit.message}} is build and releases out Gitea Actions 🚀 !?
on:
push:
branches:
- master
jobs:
Build And Releases:
name: build and releases
runs-on: ubuntu-dev
steps:
- name: Check out repository code
uses: https://git.mingliqiye.com/Actions/checkout@v4
- name: build
run: |
gradle
gradle build-jar
- name: releases
run: |
source gradle.properties
GROUPSID=$(echo "$GROUPSID" | tr -d '\r')
VERSIONS=$(echo "$VERSIONS" | tr -d '\r')
FILENAME="${GROUPSID}-${VERSIONS}.jar"
java -jar build/libs/${FILENAME} -s "${{gitea.server_url}}" -o "${{gitea.repository_owner}}" -r ${{gitea.event.repository.name}} -t "${{gitea.token}}" -ti "Auto releases ${{gitea.sha}} ${VERSIONS}" -b "# Auto releases wtih ${{gitea.event.head_commit.message}} - [${{gitea.sha}}](${{gitea.event.head_commit.url}})" -tn "Auto-Releases-${VERSIONS}-${{gitea.sha}}" -a "build/libs"