Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
awnion committed Mar 6, 2024
1 parent 726e909 commit 1b05da8
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/prerelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,21 @@ name: Prerelease
on:
workflow_dispatch:
push:
branches:
- main
- 'rc-[0-9]+.[0-9]+'
- 'rc-[0-9]+.[0-9]+.[0-9]+'
tags:
- '[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+'
- 'rc-[0-9]+.[0-9]+'
- 'rc-[0-9]+.[0-9]+.[0-9]+'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: write

env:
release: ${{ startsWith(github.ref, 'refs/tags/') && github.repository == 'tvmlabs/tvm-sdk' }}

jobs:
build:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -156,19 +159,8 @@ jobs:
cd ${{ matrix.result }}
tar -czvf ../${{ matrix.result }}.tar.gz .
- name: Upload Draft
uses: softprops/action-gh-release@v1
if: env.release != 'true'
with:
draft: true
tag_name: ${{ github.ref_name }}-${{ github.run_number }}
files: |
${{ matrix.result }}.tar.gz
body: ""

- name: Upload Prerelease
uses: softprops/action-gh-release@v1
if: env.release == 'true'
with:
prerelease: true
tag_name: ${{ github.ref_name }}
Expand Down

0 comments on commit 1b05da8

Please sign in to comment.