mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-18 18:13:09 +00:00
43 lines
1012 B
YAML
43 lines
1012 B
YAML
|
|
name: Release PECL Preparation
|
|
|
|
# on:
|
|
# release:
|
|
# types: [published]
|
|
# workflow_dispatch:
|
|
|
|
# TO test
|
|
on:
|
|
push:
|
|
branches-ignore:
|
|
- 'main'
|
|
|
|
jobs:
|
|
package:
|
|
name: Prepare package
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: '8.0'
|
|
|
|
- name: Checkout Source
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
submodules: recursive
|
|
|
|
- name: Prepare Package Script
|
|
# Update the version in code and generate the package.
|
|
run: |
|
|
ls .git
|
|
dev-scripts/update_version.sh
|
|
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
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: pecl_package_${{ steps.tag.outputs.release_tag }}
|
|
path: awscrt-${{ steps.tag.outputs.release_tag }}.tgz |