mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-17 17:47:12 +00:00
test
This commit is contained in:
@@ -28,16 +28,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Get release tag
|
|
||||||
uses: awslabs/aws-crt-builder/.github/actions/release-tag@main
|
|
||||||
id: tag
|
|
||||||
|
|
||||||
- name: Prepare Package Script
|
- name: Prepare Package Script
|
||||||
# Update the version in code and generate the package.
|
# Update the version in code and generate the package.
|
||||||
run: |
|
run: |
|
||||||
ls
|
dev-scripts/update_version.sh
|
||||||
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 }}
|
python3 dev-scripts/prepare_pecl_release.py --name aws-crt --user aws-crt --email [email protected] --version ${{ steps.tag.outputs.release_tag }}
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
|
|||||||
Executable
+15
@@ -0,0 +1,15 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
BASENAME=${0}
|
||||||
|
TOOLS_DIR=$(dirname ${BASENAME})
|
||||||
|
WORK_DIR="${TOOLS_DIR}/.."
|
||||||
|
|
||||||
|
cd "${WORK_DIR}"
|
||||||
|
|
||||||
|
version_with_v=$(git describe --tags --abbrev=0)
|
||||||
|
VERSION=$(echo ${version_with_v} | cut -f2 -dv)
|
||||||
|
sed -i "s/#define CRT_VERSION .*/#define CRT_VERSION \"$VERSION\"/g" ext/crt.c
|
||||||
|
|
||||||
|
export VERSION="${VERSION}"
|
||||||
Reference in New Issue
Block a user