mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-03-14 13:09:07 +00:00
Enhance build & release workflow (#330)
This commit is contained in:
parent
d399b025a9
commit
850d56cfcf
4
.github/workflows/build-and-release.yml
vendored
4
.github/workflows/build-and-release.yml
vendored
@ -1,6 +1,8 @@
|
||||
name: Build and Release
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
tags:
|
||||
- "v*.*.*"
|
||||
|
||||
@ -566,6 +568,7 @@ jobs:
|
||||
name: Prepare & create release
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build_main, read_metadata, build_linux_arm64]
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
steps:
|
||||
- name: Create artifact directory
|
||||
run: mkdir -p $GITHUB_WORKSPACE/artifacts
|
||||
@ -723,6 +726,7 @@ jobs:
|
||||
name: Publish release
|
||||
runs-on: ubuntu-latest
|
||||
needs: [read_metadata, create_release]
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
Loading…
Reference in New Issue
Block a user