File tree 2 files changed +7
-4
lines changed 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -83,11 +83,13 @@ jobs:
83
83
# Deploy stage.
84
84
# Here we build the package JSON (always) and do the deployments
85
85
- name : " Package / deploy"
86
- if : env(CI_GITHUB_API_KEY) IS present
86
+ # TRAVIS_PULL_REQUEST_BRANCH:
87
+ # if the current job is a pull request, the name of the branch from which the PR originated.
88
+ # if the current job is a push build, this variable is empty ("").
89
+ if : env(TRAVIS_PULL_REQUEST_BRANCH) = ""
87
90
stage : deploy
88
91
script : $TRAVIS_BUILD_DIR/tests/common.sh
89
92
env : BUILD_TYPE=package
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.
91
93
deploy :
92
94
# Create Github release, upload artifacts
93
95
- provider : releases
Original file line number Diff line number Diff line change 133
133
curl_gh_token_arg=(-H " Authorization: token $CI_GITHUB_API_KEY " )
134
134
135
135
# test
136
- echo " key was '$CI_GITHUB_API_KEY '"
137
- CI_GITHUB_API_KEY=" vt6StBC+ghqnh8YrreNo3wAzGGddJ2S4YpVZkz4S84xLEGWkIEghQhTrjlhzjBsrnHfLNko4tz9EsNx0yQ8yBlPOdReETGAkqnAU7PSPFss0qGcCRUXYtozNjbFQq6TWIxECK4xq40R9tE6NyeOpm9AYJtwF/v18u2T+T9qSgGQ="
136
+ # echo "key was '$CI_GITHUB_API_KEY'"
137
+ # this key (below) is working, the overwritten key is not empty
138
+ # CI_GITHUB_API_KEY="vt6StBC+ghqnh8YrreNo3wAzGGddJ2S4YpVZkz4S84xLEGWkIEghQhTrjlhzjBsrnHfLNko4tz9EsNx0yQ8yBlPOdReETGAkqnAU7PSPFss0qGcCRUXYtozNjbFQq6TWIxECK4xq40R9tE6NyeOpm9AYJtwF/v18u2T+T9qSgGQ="
138
139
139
140
# Get previous release name
140
141
echo " ======== curl dumped header"
You can’t perform that action at this time.
0 commit comments