Skip to content

Commit

Permalink
chore: improve the publishing pipeline (#1194)
Browse files Browse the repository at this point in the history
* fix: fetch current version_code for metadata

* chore: amend languages list for prepare_changelog

* fix: fetch version_code in :increase
  • Loading branch information
Syn-McJ authored Sep 8, 2023
1 parent 22d0822 commit 4972838
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .deploy/prepare_changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if [[ -z "$version_code" ]]; then
exit 1
fi

echo -e "# Fill in the changelog for version $version_code\n# en-US\n\n# es-ES\n\n# de-DE\n\n# ko-KR\n\n# fr-FR" > changelog.txt
echo -e "# Fill in the changelog for version $version_code\n# en-US\n\n# es-ES\n\n# ru-RU\n\n# de-DE\n\n# fr-FR\n\n# pt-BR\n\n# pl-PL\n\n# it-IT" > changelog.txt
nano changelog.txt

current_lang=""
Expand Down
12 changes: 10 additions & 2 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,14 @@ platform :android do
rollout='0.2'
end

versions = google_play_track_version_codes(track: "internal")
version_code = versions[0]

supply(
track: 'internal',
track_promote_to: "production",
rollout: rollout
rollout: rollout,
version_code: version_code
)
end

Expand All @@ -58,9 +62,13 @@ platform :android do
UI.user_error!("Rollout must be specified")
end

versions = google_play_track_version_codes(track: "internal")
version_code = versions[0]

supply(
track: 'production',
rollout: rollout
rollout: rollout,
version_code: version_code
)
end

Expand Down

0 comments on commit 4972838

Please sign in to comment.