add version 0.8.4

This commit is contained in:
qiaofeng1227 2023-07-26 10:42:48 +08:00
parent 9a34244143
commit a0d3c36681
3 changed files with 23 additions and 16 deletions

View file

@ -17,12 +17,19 @@ jobs:
name: Check out code
- name: Read Plugin Version
id: update_data
run: |
version=$(jq -r '.VERSION' version.json)
echo version=$version
echo "VERSION=$version" >> $GITHUB_ENV
changelog=$(cat changelog_latest.md)
echo "CHANGELOG=$changelog" >> $GITHUB_ENV
echo "CHANGELOG<<EOF" >> $GITHUB_OUTPUT
echo "$changelog" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
current_date=$(date +%Y-%m-%d)
printf "## $version release on $current_date\n$changelog\n" < CHANGELOG.md > temp.txt
mv temp.txt CHANGELOG.md
mkdir websoft9 artifacts
cp -r docker websoft9
cp -r cockpit websoft9
@ -48,14 +55,14 @@ jobs:
id: create_release
uses: softprops/action-gh-release@v1
with:
files: appstore/*
tag_name: ${{ env.PLUGIN_VERSION }}
title: Release-${{ env.PLUGIN_VERSION }}
body: ${{ env.CHANGELOG }}
files: /*
tag_name: v${{ env.VERSION }}
title: Release-v${{ env.VERSION }}
body: ${{ steps.update_data.outputs.CHANGELOG }}
draft: false
prerelease: true
- name: Commit and push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Push to github main
# - name: Commit and push changes
# uses: stefanzweifel/git-auto-commit-action@v4
# with:
# commit_message: Push to github main

View file

@ -117,11 +117,11 @@ else
fi
# Check port used
if netstat -tuln | grep -qE ':(80|9000)\s'; then
echo "Port 80 or 9000 is already in use."
if netstat -tuln | grep -qE ':(80|443|9000)\s'; then
echo "Port 80,443,9000 is already in use."
exit 1
else
echo "Port 80, 9000 are free."
echo "Port 80,443, 9000 are free."
fi
}
@ -131,8 +131,8 @@ InstallTools(){
echo "Prepare to install Tools ..."
if [ "$os_type" == 'CentOS' ] || [ "$os_type" == 'Rocky Linux' ] || [ "$os_type" == 'CentOS Stream' ] || [ "$os_type" == 'Fedora' ] || [ "$os_type" == 'OracleLinux' ] || [ "$os_type" == 'Redhat' ];then
sudo yum update -y 1>/dev/null 2>&1
sudo yum install git curl wget yum-utils jq bc unzip -y 1>/dev/null 2>&1
sudo yum update -y
sudo yum install git curl wget yum-utils jq bc unzip -y
fi

View file

@ -39,5 +39,5 @@
"18.04"
]
},
"VERSION": "0.8.3"
}
"VERSION": "0.8.4"
}