mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-18 01:57:13 +00:00
create release action when we cut a new release
This commit is contained in:
@@ -0,0 +1,31 @@
|
|||||||
|
name: Release PECL Preparation
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
package:
|
||||||
|
name: Prepare package
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Source
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Get release tag
|
||||||
|
uses: awslabs/aws-crt-builder/.github/actions/release-tag@main
|
||||||
|
id: tag
|
||||||
|
|
||||||
|
- name: Prepare Package Script
|
||||||
|
run: dev-scripts/prepare-release.sh --name aws-crt --user aws-crt --email [email protected] --version ${{ steps.tag.outputs.release_tag }} --notes NOTES
|
||||||
|
|
||||||
|
- 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
|
||||||
@@ -45,4 +45,4 @@ ext/awscrt.stub.php \
|
|||||||
find . -name \*.lo -o -name \*.o | xargs rm -f
|
find . -name \*.lo -o -name \*.o | xargs rm -f
|
||||||
find . -name \*.la -o -name \*.a | xargs rm -f
|
find . -name \*.la -o -name \*.a | xargs rm -f
|
||||||
find . -name \*.so | xargs rm -f
|
find . -name \*.so | xargs rm -f
|
||||||
find . -name .libs -a -type d|xargs rm -rf
|
find . -name .libs -a -type d|xargs rm -rf
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
BASENAME=${0}
|
|
||||||
TOOLS_DIR=$(dirname ${BASENAME})
|
|
||||||
WORK_DIR="${TOOLS_DIR}/.."
|
|
||||||
|
|
||||||
cd "${WORK_DIR}"
|
|
||||||
@@ -18,6 +18,8 @@ WORK_DIR="${TOOLS_DIR}/.."
|
|||||||
|
|
||||||
cd "${WORK_DIR}"
|
cd "${WORK_DIR}"
|
||||||
|
|
||||||
|
git submodule update --init --recursive
|
||||||
|
|
||||||
$TOOLS_DIR/cleanup.sh
|
$TOOLS_DIR/cleanup.sh
|
||||||
$TOOLS_DIR/prepare_package_xml.sh --name "${NAME}" --user "${USER}" --email "${EMAIL}" --version "${VERSION}" --notes "${NOTES}" >package.xml
|
$TOOLS_DIR/prepare_package_xml.sh --name "${NAME}" --user "${USER}" --email "${EMAIL}" --version "${VERSION}" --notes "${NOTES}" >package.xml
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user