45 lines
777 B
YAML
45 lines
777 B
YAML
kind: pipeline
|
|
name: tests/release
|
|
|
|
steps:
|
|
- name: rust tests
|
|
image: "rust:1"
|
|
pull: always
|
|
commands:
|
|
- cargo test --all --all-features
|
|
when:
|
|
event:
|
|
- push
|
|
|
|
- name: auto-release
|
|
image: xena/gitea-release
|
|
pull: always
|
|
environment:
|
|
RUST_LOG: debug
|
|
PLUGIN_AUTH_USERNAME: cadey
|
|
PLUGIN_GITEA_SERVER: https://tulpa.dev
|
|
PLUGIN_GITEA_TOKEN:
|
|
from_secret: GITEA_TOKEN
|
|
when:
|
|
event:
|
|
- push
|
|
branch:
|
|
- main
|
|
|
|
---
|
|
|
|
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
|