Fix: use correct curl
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Dorian Zedler 2023-02-16 13:36:42 +01:00
parent 8b143dfdcb
commit 71377d0359
Signed by: dorian
GPG key ID: 989DE36109AFA354

View file

@ -13,10 +13,7 @@ steps:
GITEA_TOKEN: GITEA_TOKEN:
from_secret: gitea-token from_secret: gitea-token
commands: commands:
- echo $${env:PWD} - "& 'C:\Program Files\Git\mingw64\bin\curl.exe' --user $${env:GITEA_USER}:$${env:GITEA_TOKEN} --upload-file receiver/Cargo.toml https://itsblue.dev/api/packages/dorian/generic/ok-ready-go/$${env:DRONE_COMMIT_SHA}/Cargo.toml"
- echo $${env:GITEA_USER}
- echo $env:GITEA_USER
- curl --user $${env:GITEA_USER}:$${env:GITEA_TOKEN} --upload-file receiver/Cargo.toml https://itsblue.dev/api/packages/dorian/generic/ok-ready-go/$${env:DRONE_COMMIT_SHA}/Cargo.toml
- name: build - name: build
environment: environment:
@ -34,7 +31,7 @@ steps:
GITEA_TOKEN: GITEA_TOKEN:
from_secret: gitea-token from_secret: gitea-token
commands: commands:
- curl --user $${env:GITEA_USER}:$${env:GITEA_TOKEN} --upload-file receiver/target/x86_64-pc-windows-msvc/release/receiver.exe https://itsblue.dev/api/packages/dorian/generic/ok-ready-go/$${env:DRONE_COMMIT_SHA}/receiver-windows.exe - "& 'C:\Program Files\Git\mingw64\bin\curl.exe' --user $${env:GITEA_USER}:$${env:GITEA_TOKEN} --upload-file receiver/target/x86_64-pc-windows-msvc/release/receiver.exe https://itsblue.dev/api/packages/dorian/generic/ok-ready-go/$${env:DRONE_COMMIT_SHA}/receiver-windows.exe"
trigger: trigger:
branch: branch:
- main - main