parent
4f9653558a
commit
fd9830559b
14
.github/workflows/build_and_release.yml
vendored
14
.github/workflows/build_and_release.yml
vendored
@ -29,16 +29,20 @@ jobs:
|
||||
make build
|
||||
- name: Create release!
|
||||
run: |
|
||||
JSON_DATA=$(
|
||||
printf '%s' \
|
||||
'{'\
|
||||
'"tag_name":"${{ env.CURRENT_TIME_VERSION }}",'\
|
||||
'"name":"${{ env.CURRENT_TIME_VERSION }}",'\
|
||||
'"body":"RELEASE THE KRAKEN"'\
|
||||
'}' \
|
||||
)
|
||||
echo """release_id=$(\
|
||||
curl -X POST \
|
||||
-s https://git.joekaufeld.com/api/v1/repos/${GITHUB_REPOSITORY%/*}/${{ github.event.repository.name }}/releases \
|
||||
-H "Authorization: token ${{ secrets.PAT }}" \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d '{\
|
||||
"tag_name":"${{ env.CURRENT_TIME_VERSION }}",\
|
||||
"name":"${{ env.CURRENT_TIME_VERSION }}",\
|
||||
"body":"RELEASE THE KRAKEN"\
|
||||
}' \
|
||||
-d $JSON_DATA \
|
||||
| python3 -c "import sys, json; print(json.load(sys.stdin)['id'])"\
|
||||
)""" >> $GITHUB_ENV
|
||||
- name: Upload assets!
|
||||
|
Loading…
Reference in New Issue
Block a user