mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-18 10:07:12 +00:00
use github output
This commit is contained in:
@@ -30,16 +30,17 @@ jobs:
|
||||
submodules: recursive
|
||||
|
||||
- name: Prepare Package Script
|
||||
id: prepare-package
|
||||
# Update the version in code and generate the package.
|
||||
run: |
|
||||
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}"
|
||||
echo "VERSION="${VERSION}" >> $GITHUB_OUTPUT
|
||||
python3 dev-scripts/prepare_pecl_release.py --name aws-crt --user aws-crt --email [email protected] --version ${VERSION}
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: pecl_package_$VERSION
|
||||
path: awscrt-$VERSION.tgz
|
||||
name: pecl_package_${{ steps.prepare-package.outputs.VERSION }}
|
||||
path: awscrt-${{ steps.prepare-package.outputs.VERSION }}.tgz
|
||||
Reference in New Issue
Block a user