2020-07-24 12:11:30 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: tests/release
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: rust tests
|
|
|
|
image: "rust:1"
|
|
|
|
pull: always
|
|
|
|
commands:
|
2020-07-25 15:03:15 +00:00
|
|
|
- cargo test --all --all-features
|
2020-07-24 12:11:30 +00:00
|
|
|
when:
|
|
|
|
event:
|
2020-07-25 15:03:15 +00:00
|
|
|
- push
|
2020-07-26 01:24:47 +00:00
|
|
|
|
|
|
|
- name: auto-release
|
|
|
|
image: xena/gitea-release
|
|
|
|
pull: always
|
2020-07-31 16:43:09 +00:00
|
|
|
environment:
|
|
|
|
RUST_LOG: debug
|
2020-08-06 18:45:48 +00:00
|
|
|
PLUGIN_AUTH_USERNAME: cadey
|
|
|
|
PLUGIN_GITEA_SERVER: https://tulpa.dev
|
|
|
|
PLUGIN_GITEA_TOKEN:
|
2020-07-26 01:24:47 +00:00
|
|
|
from_secret: GITEA_TOKEN
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
branch:
|
2020-07-27 19:30:56 +00:00
|
|
|
- main
|
2020-07-26 01:24:47 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
kind: pipeline
|
|
|
|
name: cargo publish
|
|
|
|
steps:
|
|
|
|
- name: publish maj
|
|
|
|
image: rust:1
|
|
|
|
commands:
|
|
|
|
- cargo login $CARGO_TOKEN
|
|
|
|
- "cargo publish ||:"
|
|
|
|
environment:
|
|
|
|
CARGO_TOKEN:
|
|
|
|
from_secret: CARGO_TOKEN
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- tag
|