From c48c9603c08c1634cd6c32a7fb24c2e4259309f4 Mon Sep 17 00:00:00 2001 From: winlin Date: Sun, 3 Oct 2021 07:49:02 +0800 Subject: [PATCH] Actions: Create source tar lik srs-server-5.0.14.tar.gz --- .github/workflows/release.yml | 20 +++++++++++--------- trunk/doc/CHANGELOG.md | 2 ++ trunk/src/core/srs_core_version4.hpp | 2 +- trunk/src/core/srs_core_version5.hpp | 2 +- 4 files changed, 15 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dad34e15f..f33823427 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,6 +28,17 @@ jobs: echo "SRS_TAG=$SRS_TAG" >> $GITHUB_ENV SRS_MAJOR=$(echo $SRS_TAG| cut -c 2) echo "SRS_MAJOR=$SRS_MAJOR" >> $GITHUB_ENV + # Create source tar for release. Note that it's for OpenWRT package srs-server, so the filename MUST be + # srs-server-xxx.tar.gz, because the package is named srs-server. + # Generate variables like: + # SRS_SOURCE_TAR=srs-server-4.0.145.tar.gz + - name: Create source tar.gz + run: | + DEST_DIR=srs-server-$(echo ${SRS_TAG}| sed 's/^v//g') && mkdir -p $DEST_DIR && + cp README.md $DEST_DIR && cp LICENSE $DEST_DIR && cp -R trunk $DEST_DIR/trunk && + (cd $DEST_DIR/trunk/3rdparty && rm -rf *.zip openssl-*.gz srs-bench) && + echo "SRS_SOURCE_TAR=${DEST_DIR}.tar.gz" >> $GITHUB_ENV && + tar zcf ${DEST_DIR}.tar.gz ${DEST_DIR} && du -sh ${DEST_DIR}* && rm -rf ${DEST_DIR} ################################################################ # Tests @@ -89,15 +100,6 @@ jobs: kubectl describe deploy/srs4-deploy ################################################################ - # Create source tar for release - - name: Create source tar.gz - run: | - DEST_DIR=srs-$(echo ${SRS_TAG}|sed 's/^v//g') && mkdir -p $DEST_DIR && - cp README.md $DEST_DIR && cp LICENSE $DEST_DIR && cp -R trunk $DEST_DIR/trunk && - (cd $DEST_DIR/trunk/3rdparty && rm -rf *.zip openssl-*.gz srs-bench) && - echo "SRS_SOURCE_TAR=${DEST_DIR}.tar.gz" >> $GITHUB_ENV && - tar zcf ${DEST_DIR}.tar.gz ${DEST_DIR} && - du -sh ${DEST_DIR}* # Create release. - name: Create release id: create_release diff --git a/trunk/doc/CHANGELOG.md b/trunk/doc/CHANGELOG.md index bd4067460..90f6d8b45 100644 --- a/trunk/doc/CHANGELOG.md +++ b/trunk/doc/CHANGELOG.md @@ -8,6 +8,7 @@ The changelog for SRS. ## SRS 5.0 Changelog +* v4.0, 2021-10-03, Actions: Create source tar lik srs-server-5.0.14.tar.gz * v5.0, 2021-10-02, ST: Support Cygwin64 and MIPS. 5.0.13 * v5.0, 2021-09-23, Merge [#2578](https://github.com/ossrs/srs/pull/2578) Support http callback on_play/stop. 5.0.12 * v5.0, 2021-08-07, Fix [#2508](https://github.com/ossrs/srs/pull/2508), Support features query by API. 5.0.10 @@ -25,6 +26,7 @@ The changelog for SRS. ## SRS 4.0 Changelog +* v4.0, 2021-10-03, Actions: Create source tar lik srs-server-4.0.165.tar.gz * v4.0, 2021-09-23, Merge [#2578](https://github.com/ossrs/srs/pull/2578) Support http callback on_play/stop. 4.0.163 * v4.0, 2021-09-23, Merge [#2618](https://github.com/ossrs/srs/pull/2618) to fix FUA bug. * v4.0, 2021-09-05, RTC: Merge [#2581](https://github.com/ossrs/srs/pull/2581), Fix listen ipv6 and port. 4.0.161 diff --git a/trunk/src/core/srs_core_version4.hpp b/trunk/src/core/srs_core_version4.hpp index b1bfdc52d..6ae8a3710 100644 --- a/trunk/src/core/srs_core_version4.hpp +++ b/trunk/src/core/srs_core_version4.hpp @@ -9,6 +9,6 @@ #define VERSION_MAJOR 4 #define VERSION_MINOR 0 -#define VERSION_REVISION 164 +#define VERSION_REVISION 165 #endif diff --git a/trunk/src/core/srs_core_version5.hpp b/trunk/src/core/srs_core_version5.hpp index 67167dba9..7f55002e2 100644 --- a/trunk/src/core/srs_core_version5.hpp +++ b/trunk/src/core/srs_core_version5.hpp @@ -9,6 +9,6 @@ #define VERSION_MAJOR 5 #define VERSION_MINOR 0 -#define VERSION_REVISION 13 +#define VERSION_REVISION 14 #endif