Skip to content

Commit

Permalink
Merge pull request #4 from JasonEtco/strip-full-path
Browse files Browse the repository at this point in the history
Just use the file name, not the full path
  • Loading branch information
JasonEtco authored Feb 16, 2019
2 parents 22eb494 + 476f78b commit f6be505
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion upload-to-release
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ fi

# Build the Upload URL from the various pieces
RELEASE_ID=$(jq --raw-output '.release.id' $GITHUB_EVENT_PATH)
UPLOAD_URL="https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets?name=${1}"
FILENAME=$(basename $1)
UPLOAD_URL="https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets?name=${FILENAME}"
echo "$UPLOAD_URL"

# Upload the file
Expand Down

0 comments on commit f6be505

Please sign in to comment.