mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Actions: Refine source tar file
This commit is contained in:
parent
38f0109b21
commit
f3c67c7a09
1 changed files with 8 additions and 9 deletions
17
.github/workflows/release.yml
vendored
17
.github/workflows/release.yml
vendored
|
@ -28,6 +28,14 @@ jobs:
|
||||||
echo "SRS_TAG=$SRS_TAG" >> $GITHUB_ENV
|
echo "SRS_TAG=$SRS_TAG" >> $GITHUB_ENV
|
||||||
SRS_MAJOR=$(echo $SRS_TAG| cut -c 2)
|
SRS_MAJOR=$(echo $SRS_TAG| cut -c 2)
|
||||||
echo "SRS_MAJOR=$SRS_MAJOR" >> $GITHUB_ENV
|
echo "SRS_MAJOR=$SRS_MAJOR" >> $GITHUB_ENV
|
||||||
|
# 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}* && rm -rf ${DEST_DIR}
|
||||||
|
|
||||||
################################################################
|
################################################################
|
||||||
# Tests
|
# Tests
|
||||||
|
@ -89,15 +97,6 @@ jobs:
|
||||||
kubectl describe deploy/srs4-deploy
|
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.
|
# Create release.
|
||||||
- name: Create release
|
- name: Create release
|
||||||
id: create_release
|
id: create_release
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue