mirror of
https://github.com/StikDebug/StikDebug.git
synced 2026-10-16 04:20:30 +00:00
feat: add timestamp to IPA filename
This commit is contained in:
parent
9ab2db89a3
commit
aec93ff746
1 changed files with 7 additions and 4 deletions
11
.github/workflows/build_ipa.yml
vendored
11
.github/workflows/build_ipa.yml
vendored
|
|
@ -44,18 +44,21 @@ jobs:
|
|||
|
||||
- name: 4. Package .app into .ipa
|
||||
run: |
|
||||
TIMESTAMP=$(date +"%Y%m%d_%H%M%S")
|
||||
IPA_NAME="StikDebug-${TIMESTAMP}.ipa"
|
||||
cp -R build/StikDebug.xcarchive/Products/Applications/StikDebug.app .
|
||||
mkdir -p Payload
|
||||
cp -R StikDebug.app Payload/
|
||||
zip -r StikDebug.ipa Payload
|
||||
zip -r "${IPA_NAME}" Payload
|
||||
rm -rf Payload StikDebug.app
|
||||
echo "IPA_NAME=${IPA_NAME}" >> $GITHUB_ENV
|
||||
|
||||
- name: 5. Store IPA as Workflow Artifact
|
||||
if: env.UPLOAD_IPA == 'true'
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: StikDebug-Debug.ipa
|
||||
path: StikDebug.ipa
|
||||
name: ${{ env.IPA_NAME }}
|
||||
path: ${{ env.IPA_NAME }}
|
||||
retention-days: 90
|
||||
|
||||
- name: 6. Extract Version Information
|
||||
|
|
@ -75,6 +78,6 @@ jobs:
|
|||
Built from commit [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }})
|
||||
target_commitish: ${{ github.sha }}
|
||||
files: |
|
||||
StikDebug.ipa
|
||||
${{ env.IPA_NAME }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue