Feat: upload file
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Dorian Zedler 2023-02-16 12:53:36 +01:00
parent 1b26bc0be6
commit c2e1732778
Signed by: dorian
GPG key ID: 989DE36109AFA354

View file

@ -5,7 +5,7 @@ platform:
os: windows os: windows
arch: amd64 arch: amd64
steps: steps:
- name: test - name: build
environment: environment:
RUSTFLAGS: '-C target-feature=+crt-static' RUSTFLAGS: '-C target-feature=+crt-static'
commands: commands:
@ -14,6 +14,14 @@ steps:
- C:\Users\doria\.cargo\bin\rustup.exe default stable - C:\Users\doria\.cargo\bin\rustup.exe default stable
- C:\Users\doria\.cargo\bin\cargo.exe build --release --target x86_64-pc-windows-msvc - C:\Users\doria\.cargo\bin\cargo.exe build --release --target x86_64-pc-windows-msvc
- name: upload
environment:
GITEA_USER:
from_secret: gitea-user
GITEA_TOKEN:
from_secret: gitea-token
commands:
- curl --user $GITEA_USER:$GITEA_TOKEN --upload-file receiver/target/x86_64-pc-windows-msvc/release/receiver.exe https://itsblue.dev/api/packages/dorian/generic/ok-ready-go/$DRONE_COMMIT_SHA/receiver-windows.exe
trigger: trigger:
branch: branch:
- main - main