Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.
TypeScript albumsexif-extractiongeocodinglive-photomotion-photophoto-galleryphoto-sharingwebgl-viewer
ci: add pre-release detection
Timothy Yin199a5a30d43f
diff --git a/.github/workflows/docker-release-ghcr.yml b/.github/workflows/docker-release-ghcr.ymlindex 582ac795..a7c21f9a 100644--- a/.github/workflows/docker-release-ghcr.yml+++ b/.github/workflows/docker-release-ghcr.yml@@ -39,7 +39,13 @@ jobs:echo "All tags:"git tag -l --sort=-version:refname- PREVIOUS_TAG=$(git describe --tags --abbrev=0 HEAD~1 2>/dev/null || git tag -l --sort=-version:refname | sed -n '2p')+ if [[ "$VERSION" == *"-"* ]]; then+ # 当前为预发布版本,取最近的一个版本+ PREVIOUS_TAG=$(git tag -l --sort=-version:refname | sed -n '2p')+ else+ # 当前不为预发布版本,取最近的正式版 tag+ PREVIOUS_TAG=$(git tag -l --sort=-version:refname | grep -v '-' | sed -n '2p')+ fiecho "Previous tag: $PREVIOUS_TAG"