mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Actions: Create source tar lik srs-server-5.0.14.tar.gz
This commit is contained in:
parent
4b37f650f7
commit
c48c9603c0
4 changed files with 15 additions and 11 deletions
20
.github/workflows/release.yml
vendored
20
.github/workflows/release.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue