This commit is contained in:
Dengke Tang
2023-02-28 16:16:27 -08:00
parent 21b8f0052a
commit 1226b906c6
2 changed files with 177 additions and 172 deletions
+5
View File
@@ -35,6 +35,11 @@ jobs:
- name: Prepare Package Script
# Update the version in code and generate the package.
run: |
version=$(git describe --tags --abbrev=0)
version_without_v=$(echo ${version} | cut -f2 -dv)
echo "${version_without_v}" > VERSION
echo $VERSION
echo ${{ steps.tag.outputs.release_tag }}
sed -i "s/#define CRT_VERSION \"[0-9]\+\.[0-9]\+\.[0-9]\+\"/#define CRT_VERSION \"${{ steps.tag.outputs.release_tag }}\"/g" ext/crt.c
python3 dev-scripts/prepare_pecl_release.py --name aws-crt --user aws-crt --email [email protected] --version ${{ steps.tag.outputs.release_tag }}