File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments