create release action when we cut a new release

This commit is contained in:
Dengke Tang
2023-02-22 13:31:11 -08:00
parent f6314a23e9
commit 1f6f81412b
4 changed files with 34 additions and 8 deletions
+31
View File
@@ -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
+1 -1
View File
@@ -45,4 +45,4 @@ ext/awscrt.stub.php \
find . -name \*.lo -o -name \*.o | xargs rm -f
find . -name \*.la -o -name \*.a | 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
-7
View File
@@ -1,7 +0,0 @@
#!/usr/bin/env bash
BASENAME=${0}
TOOLS_DIR=$(dirname ${BASENAME})
WORK_DIR="${TOOLS_DIR}/.."
cd "${WORK_DIR}"
+2
View File
@@ -18,6 +18,8 @@ WORK_DIR="${TOOLS_DIR}/.."
cd "${WORK_DIR}"
git submodule update --init --recursive
$TOOLS_DIR/cleanup.sh
$TOOLS_DIR/prepare_package_xml.sh --name "${NAME}" --user "${USER}" --email "${EMAIL}" --version "${VERSION}" --notes "${NOTES}" >package.xml
if [[ $? -ne 0 ]]; then