This repository was archived by the owner on Dec 10, 2025. It is now read-only.
forked from antgroup/vsag
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (49 loc) · 1.44 KB
/
Copy pathrelease.yml
File metadata and controls
55 lines (49 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# .github/workflows/release.yml
name: Create Release
on:
workflow_dispatch:
inputs:
branch:
description: 'The branch to create the release from'
required: true
default: 'main'
type: string
tag_name:
description: 'The tag for the new release (e.g., v1.0.0)'
required: true
type: string
jobs:
build-and-release:
name: Build and Release
runs-on: ubuntu-22.04
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be
with:
tool-cache: false
android: true
dotnet: true
haskell: true
large-packages: false
docker-images: false
swap-storage: true
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.branch }}
fetch-depth: 0
- name: Package release assets
run: |
echo "Packaging release assets..."
bash ./scripts/release/dist.sh
- name: Create GitHub Release and Upload Assets
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.event.inputs.tag_name }}
name: ${{ github.event.inputs.tag_name }}
generate_release_notes: true
files: dist/*.tar.gz
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}