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