File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 95
95
- uses : maxim-lobanov/setup-xcode@v1
96
96
with :
97
97
xcode-version : 14.1.0
98
+ - uses : actions/checkout@v2
99
+ with :
100
+ # You should create a personal access token and store it in your repository
101
+ token : ${{ secrets.CI_USER_TOKEN }}
102
+ repository : ' optimizely/travisci-tools'
103
+ path : ' home/runner/travisci-tools'
104
+ ref : ' master'
105
+ - name : Install hub
106
+ shell : bash
107
+ env :
108
+ HOME : ' home/runner'
109
+ run : |
110
+ # installs hub to ~/bin
111
+ $HOME/travisci-tools/release_github/install_hub.sh
98
112
- name : Push to cocoapods.org
99
113
env :
100
114
HOME : ' home/runner'
@@ -105,4 +119,5 @@ jobs:
105
119
COCOAPODS_VERSION : ' 1.12.1'
106
120
run : |
107
121
gem install cocoapods -v $COCOAPODS_VERSION
122
+ hub version
108
123
Scripts/run_release.sh
Original file line number Diff line number Diff line change 98
98
git push -f https://${GITHUB_TOKEN} @github.com/${REPO_SLUG} ${AUTOBRANCH}
99
99
100
100
# Check hub installation
101
+ pwd
101
102
hub version
103
+ whereis hub
102
104
PR_URL=$( hub pull-request -b ${BRANCH} -h ${AUTOBRANCH} -m " ${MESSAGE} " )
103
105
echo -e " ${COLOR_CYAN} ATTENTION:${COLOR_RESET} review and merge ${COLOR_CYAN}${PR_URL}${COLOR_RESET} "
104
106
echo " then to release to cocoapods use Git action's Trigger build with the following payload:"
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ function install_binary {
57
57
chmod +x ~ /bin/hub${windows: +.exe}
58
58
pwd
59
59
# verify
60
- # ~/bin/hub${windows:+.exe} version
60
+ ~ /bin/hub${windows: +.exe} version
61
61
62
62
# cleanup
63
63
rm -rf $tmp_dir
You can’t perform that action at this time.
0 commit comments