mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-23 07:15:35 +01:00
Update build-release-testflight-ipa.yml
This commit is contained in:
parent
b490c65fa6
commit
ac8d0af2f9
1 changed files with 12 additions and 6 deletions
|
@ -14,9 +14,9 @@ jobs:
|
|||
runs-on: macos-latest
|
||||
timeout-minutes: 180
|
||||
outputs:
|
||||
new_build_number: ${{ steps.set_build_number.outputs.build_number }}
|
||||
project_version: ${{ steps.set_project_version.outputs.project_version }}
|
||||
latest_commit_message: ${{ steps.latest_commit.outputs.commit_message }}
|
||||
new_build_number: ${{ steps.generate_build_number.outputs.build_number }}
|
||||
project_version: ${{ steps.determine_marketing_version.outputs.project_version }}
|
||||
latest_commit_message: ${{ steps.get_latest_commit_message.outputs.commit_message }}
|
||||
env:
|
||||
APPLE_ID: ${{ secrets.APPLE_ID }} # Setting the environment variable
|
||||
steps:
|
||||
|
@ -59,7 +59,7 @@ jobs:
|
|||
run: cat release-notes.txt
|
||||
|
||||
- name: Get Latest Commit Message
|
||||
id: latest_commit
|
||||
id: get_latest_commit_message
|
||||
run: |
|
||||
LATEST_COMMIT_MESSAGE=$(git log -1 --pretty=format:"%s")
|
||||
echo "LATEST_COMMIT_MESSAGE=${LATEST_COMMIT_MESSAGE}" >> $GITHUB_ENV
|
||||
|
@ -90,18 +90,24 @@ jobs:
|
|||
working-directory: ./ios
|
||||
|
||||
- name: Generate Build Number based on timestamp
|
||||
run: echo "NEW_BUILD_NUMBER=$(date +%s)" >> $GITHUB_ENV
|
||||
id: generate_build_number
|
||||
run: |
|
||||
NEW_BUILD_NUMBER=$(date +%s)
|
||||
echo "NEW_BUILD_NUMBER=$NEW_BUILD_NUMBER" >> $GITHUB_ENV
|
||||
echo "::set-output name=build_number::$NEW_BUILD_NUMBER"
|
||||
|
||||
- name: Set Build Number
|
||||
run: bundle exec fastlane ios increment_build_number_lane
|
||||
working-directory: ./ios
|
||||
|
||||
- name: Determine Marketing Version
|
||||
id: determine_marketing_version
|
||||
run: |
|
||||
MARKETING_VERSION=$(grep MARKETING_VERSION ios/BlueWallet.xcodeproj/project.pbxproj | awk -F '= ' '{print $2}' | tr -d ' ;' | head -1)
|
||||
echo "PROJECT_VERSION=$MARKETING_VERSION" >> $GITHUB_ENV
|
||||
echo "::set-output name=project_version::$MARKETING_VERSION"
|
||||
|
||||
|
||||
- name: Expected IPA file name
|
||||
run: |
|
||||
echo "IPA file name: BlueWallet.${{env.PROJECT_VERSION}}(${{env.NEW_BUILD_NUMBER}}).ipa"
|
||||
|
@ -136,7 +142,7 @@ jobs:
|
|||
- name: Download IPA from Artifact
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: BlueWallet.${{env.PROJECT_VERSION}}(${{env.NEW_BUILD_NUMBER}}).ipa
|
||||
name: BlueWallet.${{needs.build.outputs.project_version}}(${{needs.build.outputs.new_build_number}}).ipa
|
||||
path: ./ios/build
|
||||
|
||||
- name: Create App Store Connect API Key JSON
|
||||
|
|
Loading…
Add table
Reference in a new issue