From 7b769bf971035443e09ba26d21005ec10d218593 Mon Sep 17 00:00:00 2001 From: etsune Date: Fri, 20 Jan 2023 01:05:26 +0300 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 12 +++++++++--- dicts.sh | 0 2 files changed, 9 insertions(+), 3 deletions(-) mode change 100644 => 100755 dicts.sh diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e5bb2ad..3818a59 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,9 @@ name: Release on: schedule: - cron: '33 3 1 * *' + push: + tags: + - "v*" jobs: @@ -17,11 +20,14 @@ jobs: go-version: 1.17 - name: Build - run: dicts.sh + run: ./dicts.sh + + - name: Get current date + run: echo "CUR_DATE=$(date '+%Y%m%d')" >> $GITHUB_ENV - name: Upload uses: softprops/action-gh-release@v1 - with: - tag_name: ${{ date "+%Y%m%d" }} + with: + tag_name: ${{ env.CUR_DATE }} files: dist/B* fail_on_unmatched_files: true diff --git a/dicts.sh b/dicts.sh old mode 100644 new mode 100755