From 98a0b5ecb66fec209f705879a21399efdb2a629d Mon Sep 17 00:00:00 2001 From: miaogongzi <69211489+mgz0227@users.noreply.github.com> Date: Sat, 2 Mar 2024 01:29:13 +0800 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2980d99..94b6b97 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,12 +25,22 @@ jobs: cd Builds/LinuxMakefile CONFIG=Release make + - name: Get current date + id: date + run: echo "::set-output name=date::$(date +'%Y%m%d%H%M%S')" + + - name: Upload Artifact + uses: actions/upload-artifact@v2 + with: + name: aooserver + path: Builds/LinuxMakefile/aooserver # 替换成你的文件路径 + - name: Create release id: create_release uses: actions/create-release@v1 with: - tag_name: ${{ github.sha }} - release_name: Release ${{ github.sha }} + tag_name: ${{ steps.date.outputs.date }} + release_name: Release ${{ steps.date.outputs.date }} draft: false prerelease: false env: @@ -47,8 +57,3 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Upload Artifact - uses: actions/upload-artifact@v2 - with: - name: aooserver - path: Builds/LinuxMakefile/aooserver # 替换成你的文件路径