Fix tests by disabling tips #250
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a .NET project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | |
#src: https://www.andreasnesheim.no/setting-up-ci-for-your-net-maui-ios-app-with-github-actions/ | |
name: Build iOS | |
on: | |
push: | |
branches-ignore: [main] | |
jobs: | |
build: | |
runs-on: macos-13 | |
env: | |
KEYCHAIN: job-${{ github.job }}-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: latest-stable | |
- name: Put distribution cert | |
env: # Or as an environment variable | |
APPLE_DISTRIBUTION_CERT_P12_BASE64: ${{ secrets.APPLE_DISTRIBUTION_CERT_P12_BASE64 }} | |
run: echo "${APPLE_DISTRIBUTION_CERT_P12_BASE64}" | base64 -d > liftlog.p12 | |
- name: Import Code-Signing Certificates | |
uses: Apple-Actions/import-codesign-certs@v2 | |
with: | |
p12-filepath: "liftlog.p12" | |
p12-password: ${{ secrets.APPLE_DISTRIBUTION_CERT_PASS }} | |
keychain: ${{ env.KEYCHAIN }} | |
- name: Download Apple Provisioning Profiles | |
id: provision | |
uses: Apple-Actions/download-provisioning-profiles@v2 | |
with: | |
bundle-id: "com.limajuice.liftlog" | |
issuer-id: ${{ secrets.APPSTORE_ISSUER_ID }} | |
api-key-id: ${{ secrets.APPSTORE_KEY_ID }} | |
api-private-key: ${{ secrets.APPSTORE_PRIVATE_KEY }} | |
- name: Setup MAUI | |
run: dotnet workload install maui | |
- name: Build Tailwind | |
run: yarn && yarn build | |
working-directory: ./LiftLog.Ui | |
- name: Build | |
run: 'dotnet publish -c Release -f:net8.0-ios -p:ArchiveOnBuild=true -p:RuntimeIdentifier=ios-arm64 -p:CodesignKey="${{ secrets.APPLE_CODESIGN_KEY_NAME }}" -p:CodesignProvision="LiftLog"' | |
working-directory: ./LiftLog.App | |
- name: Delete keychain | |
if: always() # Always run this step to ensure the keychain is properly disposed of for self hosted runners | |
run: | | |
security delete-keychain "${{ env.KEYCHAIN }}".keychain |