chore: support tag in release (#382)

release-0.0
Meng Zhang 2023-08-30 23:42:17 +08:00 committed by GitHub
parent c92dd16594
commit 8248a7fd54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 5 deletions

View File

@ -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