Skip to content

Merge pull request #86 from liufang-robot/master #29

Merge pull request #86 from liufang-robot/master

Merge pull request #86 from liufang-robot/master #29

Workflow file for this run

name: Release lebai sdk
on:
push:
branches:
- master
jobs:
linux-cpp-x64:
uses: ./.github/workflows/linux_cpp_release.yml

Check failure on line 9 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release lebai sdk

Invalid workflow file

The workflow is not valid. In .github/workflows/release.yml (Line: 9, Col: 11): Error from called workflow lebai-robotics/lebai-sdk/.github/workflows/linux_cpp_release.yml@037ed961e8d46551d418f330e6b58f2c162b4365 (Line: 22, Col: 7): Unexpected value 'environment'

Check failure on line 9 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release lebai sdk

Invalid workflow file

The workflow is not valid. In .github/workflows/release.yml (Line: 9, Col: 11): Error from called workflow lebai-robotics/lebai-sdk/.github/workflows/linux_cpp_release.yml@037ed961e8d46551d418f330e6b58f2c162b4365 (Line: 22, Col: 7): Unexpected value 'environment'
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