Skip to content

Commit 01ebad8

Browse files
committed
Cleanup gem-push.sh
To make the name of the `.gem` file being build be deterministic (and avoid any risks of the shell picking up an old `*.gem` file by accident)
1 parent 30312c0 commit 01ebad8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.buildkite/gem-push.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
#!/bin/bash -eu
22

3+
GEM_NAME="fastlane-plugin-wpmreleasetoolkit"
4+
35
echo "--- :hammer: Build Gemspec"
4-
gem build fastlane-plugin-wpmreleasetoolkit.gemspec
6+
gem build "$GEM_NAME.gemspec" -o "$GEM_NAME.gem"
57

68
echo "--- :sleuth_or_spy: Validate Gem Install"
7-
gem install --user-install fastlane-plugin-wpmreleasetoolkit-*.gem
9+
gem install --user-install "$GEM_NAME.gem"
810

911
echo "--- :rubygems: Gem Push"
1012
echo ":rubygems_api_key: ${RUBYGEMS_API_KEY}" >>".gem-credentials"
1113
chmod 600 ".gem-credentials"
12-
gem push --config-file ".gem-credentials" fastlane-plugin-wpmreleasetoolkit-*.gem
14+
gem push --config-file ".gem-credentials" "$GEM_NAME.gem"

0 commit comments

Comments
 (0)