diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index bde9d69..f757219 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -1,6 +1,9 @@ name: Build and Publish App run-name: Build and Publish App -on: [workflow_dispatch] +on: + push: + tags: + - '*' jobs: build: diff --git a/androidApp/fastlane/Fastfile b/androidApp/fastlane/Fastfile index 86980e2..b32d080 100644 --- a/androidApp/fastlane/Fastfile +++ b/androidApp/fastlane/Fastfile @@ -34,7 +34,6 @@ end desc "Release to GitHub" private_lane :github_release do |params| - sh('git fetch --tags') last_tag = last_git_tag tag_message = sh("git tag -l -n1 #{last_tag} | sed 's/^[^\t]*\t//'") set_github_release( diff --git a/automation/scripts/deployment.sh b/automation/scripts/deployment.sh index adf3707..0c1f78b 100644 --- a/automation/scripts/deployment.sh +++ b/automation/scripts/deployment.sh @@ -57,5 +57,5 @@ echo "$appfile_content" > "$fastlane_dir/Appfile" pushd "../../androidApp" || exit gem install fastlane -N bundle install -fastlane release +bundle exec fastlane release popd || exit