mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-18 01:57:13 +00:00
test with this
This commit is contained in:
@@ -24,7 +24,7 @@ jobs:
|
|||||||
php-version: '8.0'
|
php-version: '8.0'
|
||||||
|
|
||||||
- name: Checkout Source
|
- name: Checkout Source
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
@@ -32,12 +32,14 @@ jobs:
|
|||||||
- 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 .git
|
version_with_v=$(git describe --tags --abbrev=0)
|
||||||
dev-scripts/update_version.sh
|
VERSION=$(echo ${version_with_v} | cut -f2 -dv)
|
||||||
python3 dev-scripts/prepare_pecl_release.py --name aws-crt --user aws-crt --email [email protected] --version ${{ steps.tag.outputs.release_tag }}
|
sed -i "s/#define CRT_VERSION .*/#define CRT_VERSION \"$VERSION\"/g" ext/crt.c
|
||||||
|
export VERSION="${VERSION}"
|
||||||
|
python3 dev-scripts/prepare_pecl_release.py --name aws-crt --user aws-crt --email [email protected] --version ${VERSION}
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: pecl_package_${{ steps.tag.outputs.release_tag }}
|
name: pecl_package_${VERSION}
|
||||||
path: awscrt-${{ steps.tag.outputs.release_tag }}.tgz
|
path: awscrt-${VERSION}
|
||||||
Reference in New Issue
Block a user