mirror of
https://github.com/deployphp/deployer.git
synced 2025-03-14 18:29:41 +01:00
Update release.yml
This commit is contained in:
parent
855a8253c9
commit
d99377d71e
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user