fix(ci): send token correctly in header
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Ashhhleyyy 2022-11-02 19:48:37 +00:00
parent 6448abe153
commit fbafc4d6dd
Signed by: ash
GPG key ID: 83B789081A0878FB

View file

@ -24,8 +24,7 @@ steps:
image: alpine image: alpine
commands: commands:
- apk add curl ca-certificates zip - apk add curl ca-certificates zip
- cd dist && zip -r ../deploy.zip * && cd .. - 'curl --fail --upload-file target/release/chs -H "Authorization: token $GITEA_TOKEN" https://git.ashhhleyyy.dev/api/packages/ash/generic/chs/$DRONE_COMMIT_SHA/chs'
- 'curl --fail --upload-file target/release/chs -H "Authorization: $GITEA_TOKEN" https://git.ashhhleyyy.dev/api/packages/ash/generic/chs/$DRONE_COMMIT_SHA/chs'
environment: environment:
GITEA_TOKEN: GITEA_TOKEN:
from_secret: GITEA_TOKEN from_secret: GITEA_TOKEN