Skip to content

Commit

Permalink
Uncomment things
Browse files Browse the repository at this point in the history
  • Loading branch information
KatherineInCode committed Apr 17, 2024
1 parent 7e3b53c commit f78fe32
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,38 +129,38 @@ jobs:
run: |
mint bootstrap
# - name: Select variant
# run: |
# ./Scripts/select_variant.sh ${{ env.build-variant }}

# - name: Update build version
# if: ${{ inputs.build-version }}
# run: |
# yq -i '.settings.MARKETING_VERSION = "${{ inputs.build-version }}"' 'project.yml'

# - name: Update build number
# run: |
# BUILD_NUMBER=$(($GITHUB_RUN_NUMBER))
# yq -i ".settings.CURRENT_PROJECT_VERSION = ${{ inputs.build-number || '$BUILD_NUMBER' }}" 'project.yml'

# - name: Build iOS app
# run: |
# BUILD_NUMBER=$(($GITHUB_RUN_NUMBER))
# ./Scripts/build.sh

# - name: Upload IPA
# uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
# with:
# name: Authenticator iOS
# path: build/Authenticator/Authenticator.ipa

# - name: Validate app with App Store Connect
# env:
# APPLE_ID_USERNAME: ${{ secrets.APPLE_ID_USERNAME }}
# APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
# run: |
# xcrun altool --validate-app \
# --type ios \
# --file "build/Authenticator/Authenticator.ipa" \
# --username "$APPLE_ID_USERNAME" \
# --password @env:APPLE_ID_PASSWORD
- name: Select variant
run: |
./Scripts/select_variant.sh ${{ env.build-variant }}
- name: Update build version
if: ${{ inputs.build-version }}
run: |
yq -i '.settings.MARKETING_VERSION = "${{ inputs.build-version }}"' 'project.yml'
- name: Update build number
run: |
BUILD_NUMBER=$(($GITHUB_RUN_NUMBER))
yq -i ".settings.CURRENT_PROJECT_VERSION = ${{ inputs.build-number || '$BUILD_NUMBER' }}" 'project.yml'
- name: Build iOS app
run: |
BUILD_NUMBER=$(($GITHUB_RUN_NUMBER))
./Scripts/build.sh
- name: Upload IPA
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: Authenticator iOS
path: build/Authenticator/Authenticator.ipa

- name: Validate app with App Store Connect
env:
APPLE_ID_USERNAME: ${{ secrets.APPLE_ID_USERNAME }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
run: |
xcrun altool --validate-app \
--type ios \
--file "build/Authenticator/Authenticator.ipa" \
--username "$APPLE_ID_USERNAME" \
--password @env:APPLE_ID_PASSWORD

0 comments on commit f78fe32

Please sign in to comment.