1 Star 5 Fork 1

Gitee 极速下载/frankenphp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/dunglas/frankenphp
克隆/下载
release.sh 1.45 KB
一键复制 编辑 原始数据 按行查看 历史
#!/usr/bin/env bash
# Creates the tags for the library and the Caddy module.
set -o nounset
set -o errexit
trap 'echo "Aborting due to errexit on line $LINENO. Exit code: $?" >&2' ERR
set -o errtrace
set -o pipefail
set -o xtrace
if ! type "git" >/dev/null; then
echo "The \"git\" command must be installed."
exit 1
fi
if ! type "gh" >/dev/null; then
echo "The \"gh\" command must be installed."
exit 1
fi
if ! type "brew" >/dev/null; then
echo "The \"brew\" command must be installed."
exit 1
fi
if [[ $# -ne 1 ]]; then
echo "Usage: ./release.sh version" >&2
exit 1
fi
# Adapted from https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
if [[ ! $1 =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-((0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*))*))?(\+([0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*))?$ ]]; then
echo "Invalid version number: $1" >&2
exit 1
fi
git checkout main
git pull
cd caddy/
go get "github.com/dunglas/frankenphp@v$1"
cd -
git commit -S -a -m "chore: prepare release $1" || echo "skip"
git tag -s -m "Version $1" "v$1"
git tag -s -m "Version $1" "caddy/v$1"
git push --follow-tags
tags=$(git tag --list --sort=-version:refname 'v*')
previous_tag=$(awk 'NR==2 {print;exit}' <<<"${tags}")
gh release create --draft --generate-notes --latest --notes-start-tag "${previous_tag}" --verify-tag "v$1"
brew bump-formula-pr dunglas/frankenphp/frankenphp --version "$1"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/mirrors/frankenphp.git
git@gitee.com:mirrors/frankenphp.git
mirrors
frankenphp
frankenphp
main

搜索帮助