Skip to content

Commit

Permalink
lets try this instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaardsholt committed Jul 21, 2020
1 parent 4311206 commit 3681b95
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,27 +45,11 @@ jobs:
done
cat /etc/*release
ls -lh
- run:
name: Create release
command: |
curl -X POST \
https://api.github.com/repos/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/releases \
-H "authorization: token $GH_TOKEN" \
-H 'content-type: application/json' \
-d '{
"tag_name": "'$CIRCLE_TAG'",
"target_commitish": "master",
"name": "'$CIRCLE_TAG'",
"body": "",
"draft": false,
"prerelease": false
}' | jq
- run:
name: Upload release assets
command: |
id=$(curl https://api.github.com/repos/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/releases/latest -H "authorization: token $GH_TOKEN" | jq '.id')
id=$(curl https://api.github.com/repos/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/releases | jq -r --arg tag $CIRCLE_TAG '.[] | select(.tag_name == $tag) | .id')
FILES=$(ls -l terraform-provider-netbox* | awk '{print $9}')
for f in $FILES
do
Expand Down

0 comments on commit 3681b95

Please sign in to comment.