Add Auto release config
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
9596694941
commit
cbdd71e475
27
.drone.yml
27
.drone.yml
@ -3,15 +3,38 @@ type: docker
|
|||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
# Test
|
||||||
|
- name: test
|
||||||
image: rust
|
image: rust
|
||||||
environment:
|
environment:
|
||||||
SECRET_INPUT:
|
SECRET_INPUT:
|
||||||
from_secret: secret_input
|
from_secret: secret_input
|
||||||
commands:
|
commands:
|
||||||
- cargo build --verbose --all
|
- cargo build --verbose --all
|
||||||
- cargo test --verbose --all
|
- cargo test --verbose --all --lib
|
||||||
# Simple test
|
# Simple test
|
||||||
- 'echo "Input: $SECRET_INPUT"'
|
- 'echo "Input: $SECRET_INPUT"'
|
||||||
- cargo run $SECRET_INPUT > output
|
- cargo run $SECRET_INPUT > output
|
||||||
- 'echo "Output: " && cat output'
|
- 'echo "Output: " && cat output'
|
||||||
|
|
||||||
|
# Release
|
||||||
|
- name: build-release
|
||||||
|
image: rust
|
||||||
|
commands:
|
||||||
|
- cargo build --release
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
- name: gitea-release
|
||||||
|
image: plugins/gitea-release
|
||||||
|
settings:
|
||||||
|
base_url: https://git.kaaass.net
|
||||||
|
api_key:
|
||||||
|
from_secret: gitea_token
|
||||||
|
files:
|
||||||
|
- target/release/ci-test
|
||||||
|
checksum:
|
||||||
|
- md5
|
||||||
|
- sha1
|
||||||
|
- sha256
|
||||||
|
when:
|
||||||
|
event: tag
|
Loading…
x
Reference in New Issue
Block a user