Skip to content

Commit

Permalink
Fixed missing env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
reinout committed Feb 1, 2022
1 parent e452a52 commit 7f29ab0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions upload-artifact.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
set -e
set -u

# ARTIFACTS_KEY_STAGING and ARTIFACTS_KEY_PRODUCTION are set as env variables
# in the travis UI.
# TRAVIS_BRANCH is set automatically by travis
# ARTIFACTS_KEY_STAGING and ARTIFACTS_KEY_PRODUCTION have been set as env
# variables in the github UI.
ARTIFACT=threedi-docs.zip

if [ $1 = "production" ]
Expand All @@ -24,5 +23,5 @@ curl -X POST \
-H "Content-Type: multipart/form-data" \
-F key=${ARTIFACTS_KEY} \
-F artifact=@${ARTIFACT} \
-F branch=${TRAVIS_BRANCH} \
-F branch=${GITHUB_REF} \
https://artifacts.lizard.net/upload/${PROJECT}/

0 comments on commit 7f29ab0

Please sign in to comment.