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 5ee410e commit 7f77c71
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions .github/workflows/push-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ on:
tags:
- v*

permissions: write-all
permissions:
contents: write
discussions: write

jobs:
build:
Expand Down Expand Up @@ -99,15 +101,26 @@ jobs:
# run: echo "RELEASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV

# 上传文件并发布 Release
- uses: "marvinpinto/action-automatic-releases@latest"
- name: Upload Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ env.RELEASE_VERSION }}"
prerelease: false
title: "Release ${{ env.RELEASE_VERSION }}"
files: |
build/auto_plan*
build/auto_plan_linux_x64.tar.gz
build/auto_plan_linux_aarch64.tar.gz
build/auto_plan_windows_x64.zip
build/auto_plan.jar
build/autoplan_front.zip
build/application-example.yml
# - uses: "marvinpinto/action-automatic-releases@latest"
# with:
# repo_token: "${{ secrets.GITHUB_TOKEN }}"
# automatic_release_tag: "${{ env.RELEASE_VERSION }}"
# prerelease: false
# title: "Release ${{ env.RELEASE_VERSION }}"
# files: |
# build/auto_plan*
# build/application-example.yml

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand Down

0 comments on commit 7f77c71

Please sign in to comment.