Skip to content

Commit 64e0050

Browse files
committed
chore: remove debug statements from publish-sample.yml and Fastfile
1 parent 53e4959 commit 64e0050

File tree

2 files changed

+0
-77
lines changed

2 files changed

+0
-77
lines changed

.github/workflows/publish-sample.yml

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -37,59 +37,6 @@ jobs:
3737
node-version: '18'
3838
cache: 'yarn'
3939

40-
- name: Debug package.json path and content
41-
run: |
42-
echo "=== PACKAGE.JSON DEBUG ==="
43-
echo "Current working directory: $(pwd)"
44-
echo "Repository root contents:"
45-
ls -la
46-
echo ""
47-
echo "Sample directory contents:"
48-
ls -la sample/
49-
echo ""
50-
echo "Checking package.json locations:"
51-
echo "- package.json exists: $(test -f package.json && echo 'YES' || echo 'NO')"
52-
echo "- sample/package.json exists: $(test -f sample/package.json && echo 'YES' || echo 'NO')"
53-
echo ""
54-
if [ -f sample/package.json ]; then
55-
echo "sample/package.json version:"
56-
grep '"version"' sample/package.json || echo "No version field found"
57-
fi
58-
echo ""
59-
echo "From sample/ios/fastlane/ directory perspective:"
60-
echo "- ../../package.json would be: $(realpath sample/ios/fastlane/../../package.json 2>/dev/null || echo 'Path does not resolve')"
61-
echo "- ../../package.json exists: $(test -f sample/ios/fastlane/../../package.json && echo 'YES' || echo 'NO')"
62-
63-
- name: Check App Store Connect API Keys
64-
env:
65-
APP_STORE_CONNECT_API_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ID }}
66-
APP_STORE_CONNECT_API_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_ISSUER_ID }}
67-
APP_STORE_CONNECT_API_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY }}
68-
run: |
69-
echo "Checking App Store Connect API key values..."
70-
if [ -z "$APP_STORE_CONNECT_API_KEY_ID" ]; then
71-
echo "❌ APP_STORE_CONNECT_API_KEY_ID is missing"
72-
exit 1
73-
else
74-
echo "✅ APP_STORE_CONNECT_API_KEY_ID is set"
75-
fi
76-
77-
if [ -z "$APP_STORE_CONNECT_API_ISSUER_ID" ]; then
78-
echo "❌ APP_STORE_CONNECT_API_ISSUER_ID is missing"
79-
exit 1
80-
else
81-
echo "✅ APP_STORE_CONNECT_API_ISSUER_ID is set"
82-
fi
83-
84-
if [ -z "$APP_STORE_CONNECT_API_KEY" ]; then
85-
echo "❌ APP_STORE_CONNECT_API_KEY is missing"
86-
exit 1
87-
else
88-
echo "✅ APP_STORE_CONNECT_API_KEY is set"
89-
fi
90-
91-
echo "All App Store Connect API keys are properly configured ✅"
92-
9340
- name: Setup Ruby
9441
uses: ruby/setup-ruby@v1
9542
env:

sample/ios/fastlane/Fastfile

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
1-
puts "=== VERSION DEBUG ==="
2-
puts "Dir.pwd: #{Dir.pwd}"
3-
puts "JSON path: #{Dir.pwd}/../../package.json"
4-
puts "File exists: #{File.exist?("#{Dir.pwd}/../../package.json")}"
51
PACKAGE_JSON=read_json(json_path: "#{Dir.pwd}/../../package.json")
6-
puts "PACKAGE_JSON content: #{PACKAGE_JSON}"
72
VERSION=PACKAGE_JSON[:version]
8-
puts "VERSION: '#{VERSION}'"
9-
puts "VERSION empty?: #{VERSION.nil? || VERSION.empty?}"
103
DATE=Time.new.strftime("%Y.%m%d.%H%M")
114

125
before_all do |lane, options|
@@ -24,28 +17,11 @@ platform :ios do
2417
desc "Deploy a new build to TestFlight"
2518
lane :deploy do
2619
# Use App Store Connect API key for authentication
27-
puts "=== API KEY DEBUG ==="
28-
puts "APP_STORE_CONNECT_API_KEY_ID exists: #{!ENV["APP_STORE_CONNECT_API_KEY_ID"].nil?}"
29-
puts "APP_STORE_CONNECT_API_KEY_ID value: '#{ENV["APP_STORE_CONNECT_API_KEY_ID"]}'"
30-
puts "APP_STORE_CONNECT_API_ISSUER_ID exists: #{!ENV["APP_STORE_CONNECT_API_ISSUER_ID"].nil?}"
31-
puts "APP_STORE_CONNECT_API_ISSUER_ID value: '#{ENV["APP_STORE_CONNECT_API_ISSUER_ID"]}'"
32-
puts "APP_STORE_CONNECT_API_KEY exists: #{!ENV["APP_STORE_CONNECT_API_KEY"].nil?}"
33-
puts "APP_STORE_CONNECT_API_KEY length: #{ENV["APP_STORE_CONNECT_API_KEY"]&.length || 'nil'}"
34-
puts "APP_STORE_CONNECT_API_KEY first 50 chars: '#{ENV["APP_STORE_CONNECT_API_KEY"]&.[](0..50) || 'nil'}'"
35-
36-
# Create temporary key file
37-
key_file_path = "/tmp/app_store_api_key.p8"
38-
File.write(key_file_path, ENV["APP_STORE_CONNECT_API_KEY"])
39-
puts "Key file path: #{key_file_path}"
40-
puts "Key file exists: #{File.exist?(key_file_path)}"
41-
puts "Key file size: #{File.exist?(key_file_path) ? File.size(key_file_path) : 'N/A'} bytes"
42-
4320
api_key_info = {
4421
key_id: ENV["APP_STORE_CONNECT_API_KEY_ID"],
4522
issuer_id: ENV["APP_STORE_CONNECT_API_ISSUER_ID"],
4623
key: ENV["APP_STORE_CONNECT_API_KEY"]
4724
}
48-
puts "api_key_info: #{api_key_info}"
4925

5026
# Check if all API key values are present
5127
if api_key_info[:key_id].nil? || api_key_info[:issuer_id].nil? || ENV["APP_STORE_CONNECT_API_KEY"].nil?

0 commit comments

Comments
 (0)