From 09d9add7a4ea21c48c08f437c3442c1679a2a897 Mon Sep 17 00:00:00 2001 From: Miha Drofenik Date: Mon, 1 Apr 2024 19:16:44 +0200 Subject: [PATCH] Workflow updated --- .github/workflows/build.yml | 4 ++-- fastlane/Fastfile | 13 +++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5b5ac59..6932a7f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,8 +3,8 @@ name: Build and Deploy to App Distribution and Testflight on: workflow_dispatch: push: - tags: - - "*" + branches: + - "main" jobs: extract-version: diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 7e60c67..c44bb09 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -18,6 +18,19 @@ platform :ios do desc "Build a release version of the app" lane :build_release do + + # Check if the release_notes.txt file exists + if File.exist?("./release_notes.txt") + # Read the contents of the file + release_notes_content = File.read("./release_notes.txt") + + # Print the contents of the file + puts "Release Notes:" + puts release_notes_content + else + puts "Release notes file not found" + end + create_keychain( name: "com.wildlife.wildlifewatcher", password: ENV["IOS_KEYCHAIN_PASSWORD"],