This commit is contained in:
parent
7a7a47e8de
commit
2536ca17e9
@ -1,13 +1,9 @@
|
||||
name: Java CI with Maven
|
||||
|
||||
# 检测到 src 文件内 .java 文件有变动执行编译
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- '**/*src/**/*.java'
|
||||
# pom.xml 文件有变动执行编译
|
||||
- '**/pom.xml'
|
||||
- '**/.gitea/workflows/*.yml'
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -29,9 +25,6 @@ jobs:
|
||||
run: mvn -B package --file pom.xml
|
||||
- name: "Copy jar to staging"
|
||||
run: mkdir staging && cp target/*.jar staging
|
||||
- name: "Set Release version env variable"
|
||||
run: |
|
||||
echo "RELEASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
|
||||
- name: "Build & test"
|
||||
run: |
|
||||
echo "done!"
|
||||
@ -44,6 +37,4 @@ jobs:
|
||||
with:
|
||||
files: |-
|
||||
staging/*.jar
|
||||
title: "Release ${{ env.RELEASE_VERSION }}"
|
||||
automatic_release_tag: "${{ env.RELEASE_VERSION }}"
|
||||
api_key: '${{secrets.RELEASE_TOKEN}}'
|
Loading…
Reference in New Issue
Block a user