Skip to content

Commit

Permalink
add ipa_info step
Browse files Browse the repository at this point in the history
  • Loading branch information
level3tjg committed Apr 2, 2024
1 parent 1691f22 commit ac12de6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ jobs:
- name: Download IPA (Auto)
if: ${{ inputs.create_release && !inputs.ipa_url }}
id: download_ipa
uses: level3tjg/decryptedappstore-action@main
with:
appstore_url: "https://apps.apple.com/us/app/reddit/id1064216828"
Expand All @@ -55,9 +54,12 @@ jobs:

- name: Download IPA (Manual)
if: ${{ inputs.create_release && inputs.ipa_url }}
id: download_ipa
run: curl -Lo "${{ github.workspace }}/App.ipa" ${{ inputs.ipa_url }}

- name: Get IPA Info
if: ${{ inputs.create_release }}
id: ipa_info
run: |
curl -Lo "${{ github.workspace }}/App.ipa" ${{ inputs.ipa_url }}
info=$(unzip -p "${{ github.workspace }}/App.ipa" Payload/*.app/Info.plist)
echo "bundle-id=$(xmlstarlet sel -t -v "/plist/dict/key[text()=\"CFBundleIdentifier\"]/following-sibling::*[1]/text()" >> $GITHUB_OUTPUT
echo "version=$(xmlstarlet sel -t -v "/plist/dict/key[text()=\"CFBundleShortVersionString\"]/following-sibling::*[1]/text()")" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -102,7 +104,7 @@ jobs:
FINALPACKAGE: 1
SIDELOADED: 1
IPA: ${{ github.workspace }}/App.ipa
APP_VERSION: ${{ steps.download_ipa.outputs.version }}
APP_VERSION: ${{ steps.ipa_info.outputs.version }}

- name: Upload artifacts
uses: actions/upload-artifact@v4
Expand All @@ -116,4 +118,4 @@ jobs:
with:
draft: true
files: packages/*
tag_name: v${{ steps.download_ipa.outputs.version }}-${{ steps.package_info.outputs.version }}
tag_name: v${{ steps.ipa_info.outputs.version }}-${{ steps.package_info.outputs.version }}

0 comments on commit ac12de6

Please sign in to comment.