chore: turn off binary release for pushes to main

release-0.0
Meng Zhang 2023-08-31 09:04:01 +08:00
parent 2b5152f734
commit 41046f8324
1 changed files with 1 additions and 12 deletions

View File

@ -5,11 +5,6 @@ on:
push:
tags:
- 'v*'
branches: [ "main" ]
paths:
- 'Cargo.toml'
- 'Cargo.lock'
- 'crates/**'
pull_request:
branches: ["main" ]
paths:
@ -108,16 +103,10 @@ jobs:
- name: Download all artifacts
uses: actions/download-artifact@v3
- name: Generate tag name
env:
REF_NAME: ${{ github.ref_name }}
run: |
echo "TAG_NAME=$(echo $REF_NAME | sed 's/main/nightly/g')" >>${GITHUB_ENV}
- uses: ncipollo/release-action@v1
with:
allowUpdates: true
prerelease: true
artifacts: "tabby_*/tabby_*"
tag: ${{ env.TAG_NAME }}
tag: ${{ github.ref_name }}
removeArtifacts: true