Skip to content

Commit

Permalink
fix github action
Browse files Browse the repository at this point in the history
  • Loading branch information
wyt1215819315 committed Dec 15, 2023
1 parent 7b78af6 commit 89b3b7e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/push-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: ReleaseVersion
run: |
echo ${{ env.RELEASE_VERSION }}
- name: 建立JDK17运行环境
uses: actions/setup-java@v3
with:
Expand Down Expand Up @@ -88,8 +93,8 @@ jobs:
- run: cp target/auto_plan.jar build
- run: cp docs/application-example.yml build

- name: 获取 Maven pom.xml中 version版本环境变量
run: echo "RELEASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
# - name: 获取 Maven pom.xml中 version版本环境变量
# run: echo "RELEASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV

# 上传文件并发布 Release
- uses: "marvinpinto/action-automatic-releases@latest"
Expand Down

0 comments on commit 89b3b7e

Please sign in to comment.