File tree 2 files changed +8
-1
lines changed 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 13
13
directories :
14
14
- $HOME/astyle
15
15
16
+ # useless?
16
17
# stages:
17
18
# - build
18
19
# - deploy
@@ -82,11 +83,11 @@ jobs:
82
83
# Deploy stage.
83
84
# Here we build the package JSON (always) and do the deployments
84
85
- name : " Package / deploy"
86
+ if : env(TRAVIS_PULL_REQUEST) != "false"
85
87
stage : deploy
86
88
script : $TRAVIS_BUILD_DIR/tests/common.sh
87
89
env : BUILD_TYPE=package
88
90
# TRAVIS_PULL_REQUEST is set to the pull request number if the current job is a pull request build, or false if it’s not.
89
- if : env(TRAVIS_PULL_REQUEST) != "false"
90
91
deploy :
91
92
# Create Github release, upload artifacts
92
93
- provider : releases
Original file line number Diff line number Diff line change @@ -132,8 +132,14 @@ if [ -z "$CI_GITHUB_API_KEY" ]; then
132
132
fi
133
133
curl_gh_token_arg=(-H " Authorization: token $CI_GITHUB_API_KEY " )
134
134
135
+ # test
136
+ echo " key was '$CI_GITHUB_API_KEY '"
137
+ CI_GITHUB_API_KEY=" vt6StBC+ghqnh8YrreNo3wAzGGddJ2S4YpVZkz4S84xLEGWkIEghQhTrjlhzjBsrnHfLNko4tz9EsNx0yQ8yBlPOdReETGAkqnAU7PSPFss0qGcCRUXYtozNjbFQq6TWIxECK4xq40R9tE6NyeOpm9AYJtwF/v18u2T+T9qSgGQ="
138
+
135
139
# Get previous release name
140
+ echo " ======== curl dumped header"
136
141
curl --silent -D /dev/stderr ${curl_gh_token_arg[@]} https://api.github.com/repos/esp8266/Arduino/releases > releases.json
142
+ echo " ======== curl"
137
143
138
144
# Previous final release (prerelase == false)
139
145
prev_release=$( jq -r ' . | map(select(.draft == false and .prerelease == false)) | sort_by(.created_at | - fromdateiso8601) | .[0].tag_name' releases.json)
You can’t perform that action at this time.
0 commit comments