From b93b93110be94ad3921d328204e1450df6a2da64 Mon Sep 17 00:00:00 2001 From: MengYX Date: Thu, 13 Aug 2020 16:01:35 +0800 Subject: [PATCH] Update GitHub CI --- .github/workflows/release.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d0a959f..cfaa61e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,14 +40,18 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./dist + - name: Get current time + id: date + run: echo "::set-output name=date::$(date +'%Y-%m-%d')" + - name: Create a Release id: create_release uses: actions/create-release@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ github.ref }} - release_name: "Build $(date %Y/%m/%d)" + release_name: "Build ${{ steps.date.outputs.date }}" draft: true - name: Upload Release Assets - legacy.tar.gz