cicd attempt 1
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
29b438e6c4
commit
97a7dc5b23
|
@ -0,0 +1,38 @@
|
|||
kind: pipeline
|
||||
name: tests
|
||||
steps:
|
||||
- name: test-linux
|
||||
image: rust
|
||||
commands:
|
||||
- cargo test -v
|
||||
---
|
||||
kind: pipeline
|
||||
name: release
|
||||
steps:
|
||||
- name: release-linux
|
||||
image: rust
|
||||
commands:
|
||||
- cargo build --release
|
||||
|
||||
- name: release-win
|
||||
image: lordmzte/rust-win
|
||||
commands:
|
||||
- cargo build --release --target x86_64-pc-windows-gnu
|
||||
|
||||
- name: publish
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
base_url: https://data.tilera.xyz/git
|
||||
api_key:
|
||||
from_secret: gitea_token
|
||||
files:
|
||||
- target/release/jm
|
||||
- target/release/jmtoken
|
||||
- target/x86_64-pc-windows-gnu/release/jm.exe
|
||||
- target/x86_64-pc-windows-gnu/release/jmtoken.exe
|
||||
when:
|
||||
event: tag
|
||||
depends_on:
|
||||
- release-linux
|
||||
- release-win
|
||||
|
Loading…
Reference in New Issue