Skip to content

1.0.3 (#29)

1.0.3 (#29) #79

Workflow file for this run

name: Run Fastlane Actions
on:
push:
branches: [ main, "CI/CD" ]
pull_request:
branches: [ "CI/CD" ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
name: Checkout
- name: Select Xcode Version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Install Fastlane
run: |
brew install fastlane
- name: Install fastlane plugins
run: |
fastlane add_plugin versioning
- name: Create testflight build
run: |
bundle exec fastlane makeAndSendBuild
env:
APPLE_TEAM_ID: '${{ secrets.APPLE_TEAM_ID }}'
MATCH_GIT_REPOSITORY_TOKEN: '${{ secrets.MATCH_GIT_REPOSITORY_TOKEN }}'
MATCH_GIT_URL: '${{ secrets.MATCH_GIT_URL }}'
MATCH_PASSWORD: '${{ secrets.MATCH_PASSWORD }}'
SLACK_URL: '${{ secrets.SLACK_URL }}'
FASTLANE_PASSWORD: '${{ secrets.FASTLANE_PASSWORD }}'
APP_STORE_CONNECT_CONTENT: '${{ secrets.APP_STORE_CONNECT_CONTENT }}'
APP_STORE_CONNECT_ISSUER_ID: '${{ secrets.APP_STORE_CONNECT_ISSUER_ID }}'
APP_STORE_CONNECT_KEY_ID: '${{ secrets.APP_STORE_CONNECT_KEY_ID }}'
- name: Trigger slack Notification on success
if: success()
env:
SLACK_WEBHOOK: '${{ secrets.SLACK_WEBHOOK }}'
run: |
curl -X POST -H 'Content-type: application/json' --data '{"text":"Build Completed \n All fastlane actions run successfully \n Pull request ready to be merged on <https://github.com/Viafoura/sdk-ios/actions/runs/${{github.run_id}}|*FP iOS App*> \n <https://github.com/Viafoura/sdk-ios/actions/runs/${{github.run_id}}?check_suite_focus=true|VIEW *DETAILS*>", }' https://hooks.slack.com/services/$SLACK_WEBHOOK
- name: Trigger slack Notification on failure
if: failure()
env:
SLACK_WEBHOOK: '${{ secrets.SLACK_WEBHOOK }}'
run: |
curl -X POST -H 'Content-type: application/json' --data '{"text":"Build Failed \n Some fastlane actions failed \n Pull request *CANCELLED* on <https://github.com/Viafoura/sdk-ios/actions/runs/${{github.run_id}}|*FP iOS App*> \n <https://github.com/Viafoura/sdk-ios/actions/runs/${{github.run_id}}?check_suite_focus=true|VIEW *DETAILS*>", }' https://hooks.slack.com/services/$SLACK_WEBHOOK