Update release.yml

This commit is contained in:
Anton Medvedev 2023-04-05 11:22:42 +02:00
parent 855a8253c9
commit d99377d71e
No known key found for this signature in database

View File

@ -24,17 +24,12 @@ jobs:
run: |
export PATH=${PATH}:`go env GOPATH`/bin
export RELEASE_ID=$(curl --fail-with-body -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/deployphp/deployer/releases \
| fx ".find(x=> x.tag_name == 'v${RELEASE_VERSION}').id")
curl --fail-with-body -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
-H "Content-Type: application/octet-stream" \
"https://uploads.github.com/repos/deployphp/deployer/releases/${RELEASE_ID}/assets?name=deployer.phar" \
--data-binary "@deployer.phar"