Skip to content

Commit f4d7709

Browse files
committed
fix(ios):Update iOS build versioning to use timestamp-based naming
1 parent 8eee4b3 commit f4d7709

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/build.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,16 @@ jobs:
184184
185185
- name: Get App Version
186186
run: |
187-
echo "ver_name=$(grep -A1 CFBundleShortVersionString ios/Runner/Info.plist | grep string | sed 's/.*<string>\(.*\)<\/string>.*/\1/')" >> $GITHUB_ENV
187+
# Get base version from openlist_version file and add timestamp
188+
BASE_VERSION=$(cat openlist_version)
189+
# Generate timestamp in format YYMMDDHH (精确到小时)
190+
TIMESTAMP=$(date +%y%m%d%H)
191+
# Combine version with timestamp for artifact naming
192+
echo "ver_name=${BASE_VERSION}.${TIMESTAMP}" >> $GITHUB_ENV
188193
189194
- name: Upload iOS App To Artifact
190195
if: success() || failure()
191196
uses: actions/upload-artifact@v4
192197
with:
193-
name: "OpenListFlutter-iOS-v${{ env.ver_name }}"
194-
path: "${{ env.output }}/OpenListFlutter.ipa"
198+
name: "OpenListFlutter-iOS-${{ env.ver_name }}"
199+
path: "${{ env.output }}/OpenListFlutter.ipa"

0 commit comments

Comments
 (0)