This commit is contained in:
parent
e00ec36725
commit
a4073d4f17
@ -7,24 +7,25 @@ on:
|
|||||||
- '**/*src/**/*.java'
|
- '**/*src/**/*.java'
|
||||||
# pom.xml 文件有变动执行编译
|
# pom.xml 文件有变动执行编译
|
||||||
- '**/pom.xml'
|
- '**/pom.xml'
|
||||||
|
- '**/.gitea/workflows/*.yml'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Maven
|
- name: "Set up Maven"
|
||||||
uses: stCarolas/setup-maven@v4
|
uses: stCarolas/setup-maven@v4
|
||||||
- name: Set up JDK 17
|
- name: "Set up JDK 17"
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
cache: maven
|
cache: maven
|
||||||
- name: Build with Maven
|
- name: "Build with Maven"
|
||||||
run: mvn -B package --file pom.xml
|
run: mvn -B package --file pom.xml
|
||||||
- run: mkdir staging && cp target/*.jar staging
|
- run: mkdir staging && cp target/*.jar staging
|
||||||
- name: Set Release version env variable
|
- name: "Set Release version env variable"
|
||||||
run: |
|
run: |
|
||||||
echo "RELEASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
|
echo "RELEASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
|
||||||
- name: "Build & test"
|
- name: "Build & test"
|
||||||
@ -35,4 +36,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
files: |-
|
files: |-
|
||||||
staging/*.jar
|
staging/*.jar
|
||||||
|
title: "Release ${{ env.RELEASE_VERSION }}"
|
||||||
|
automatic_release_tag: "${{ env.RELEASE_VERSION }}"
|
||||||
api_key: '${{secrets.RELEASE_TOKEN}}'
|
api_key: '${{secrets.RELEASE_TOKEN}}'
|
Loading…
Reference in New Issue
Block a user