From 8248a7fd545dc46fb1bed19722fdda3258506587 Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Wed, 30 Aug 2023 23:42:17 +0800 Subject: [PATCH] chore: support tag in release (#382) --- .github/workflows/ci.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc9f926..214dbcc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -106,14 +106,15 @@ jobs: - name: Download all artifacts uses: actions/download-artifact@v3 - - name: Display structure of downloaded files - run: ls -R + - name: Generate tag name + env: + REF_NAME: ${{ github.ref_name }} + run: | + echo "TAG_NAME=$(echo $REF_NAME | sed 's/main/latest/g' | sed 's/^v//g')" >>${GITHUB_ENV} - uses: ncipollo/release-action@v1 with: allowUpdates: true - prerelease: true - name: "Development Build" artifacts: "tabby_*/tabby_*" - tag: latest + tag: ${{ env.TAG_NAME }} removeArtifacts: true