-
Notifications
You must be signed in to change notification settings - Fork 6
55 lines (52 loc) · 1.5 KB
/
release.yml
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
name: Release lebai sdk
on:
push:
branches:
- master
jobs:
linux-cpp-x64:
uses: ./.github/workflows/linux_cpp_release.yml
linux-python-x64:
uses: ./.github/workflows/linux_python_release.yml
linux-dotnet-x64:
uses: ./.github/workflows/linux_dotnet_release.yml
release:
needs:
- linux-cpp-x64
- linux-python-x64
- linux-dotnet-x64
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: lebai-linux-x64-deb
- uses: actions/download-artifact@v4
with:
name: lebai-linux-x64-nupkg
- uses: actions/download-artifact@v4
with:
name: lebai-linux-x64-whl
- name: Display structure of downloaded files
run: ls -l
- name: Extract Project Version
id: extract_version
run: |
# Extract the project version from CMakeLists.txt
version=$(awk '/project\s*\(/,/)/' CMakeLists.txt | grep -Po 'VERSION\s*\K[0-9]+\.[0-9]+\.[0-9]+')
echo "version_tag=v$version" >> $GITHUB_ENV
- name: Create release
id: create_release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.extract_version.outputs.version_tag }}
allowUpdates: true
artifacts: |
*.exe,
*.deb,
*.nupkg,
*.whl