diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9101c98aa..b3412a57c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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"