prepare crates for publishing
This commit is contained in:
parent
03004b31e7
commit
524a12305c
31
.drone.yml
31
.drone.yml
|
@ -30,6 +30,37 @@ steps:
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
kind: pipeline
|
||||||
|
name: cargo publish
|
||||||
|
steps:
|
||||||
|
- name: publish elfs
|
||||||
|
image: rust:1
|
||||||
|
commands:
|
||||||
|
- cd elfs
|
||||||
|
- cargo login $CARGO_TOKEN
|
||||||
|
- cargo publish
|
||||||
|
environment:
|
||||||
|
CARGO_TOKEN:
|
||||||
|
from_secret: CARGO_TOKEN
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
|
||||||
|
- name: publish gitea
|
||||||
|
image: rust:1
|
||||||
|
commands:
|
||||||
|
- cd gitea
|
||||||
|
- cargo login $CARGO_TOKEN
|
||||||
|
- cargo publish
|
||||||
|
environment:
|
||||||
|
CARGO_TOKEN:
|
||||||
|
from_secret: CARGO_TOKEN
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: docker
|
name: docker
|
||||||
steps:
|
steps:
|
||||||
|
|
|
@ -3,8 +3,14 @@ name = "elfs"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Christine Dodrill <me@christine.website>"]
|
authors = ["Christine Dodrill <me@christine.website>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
homepage = "https://tulpa.dev/cadey/gitea-release/src/branch/main/elfs"
|
||||||
|
repository = "https://tulpa.dev/cadey/gitea-release"
|
||||||
|
keywords = ["namegen"]
|
||||||
|
license = "MIT"
|
||||||
|
readme = "README.md"
|
||||||
|
description = "A simple name generator for Rust programs."
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
names = "0"
|
names = "0.11"
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
# elfs
|
||||||
|
|
||||||
|
A simple name generator based on [Pokemon Vietnamese Crystal](https://tvtropes.org/pmwiki/pmwiki.php/VideoGame/PokemonVietnameseCrystal).
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
Add the following to your `Cargo.toml`:
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[dependencies]
|
||||||
|
elfs = "0.1"
|
||||||
|
```
|
||||||
|
|
||||||
|
```rust
|
||||||
|
let name = elfs::next();
|
||||||
|
```
|
|
@ -3,6 +3,12 @@ name = "gitea"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Christine Dodrill <me@christine.website>"]
|
authors = ["Christine Dodrill <me@christine.website>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
homepage = "https://tulpa.dev/cadey/gitea-release/src/branch/main/gitea"
|
||||||
|
repository = "https://tulpa.dev/cadey/gitea-release"
|
||||||
|
keywords = ["gitea", "api", "http"]
|
||||||
|
license = "MIT"
|
||||||
|
readme = "README.md"
|
||||||
|
description = "A Gitea client for Rust programs."
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
# gitea
|
||||||
|
|
||||||
|
A simple Gitea client for Rust programs. You will need an API token as described
|
||||||
|
[here](https://docs.gitea.io/en-us/api-usage/).
|
||||||
|
|
||||||
|
```toml
|
||||||
|
gitea = "0.1.0"
|
||||||
|
```
|
|
@ -1,3 +1,5 @@
|
||||||
|
/// The main Gitea client. You will need an API token as described [here](https://docs.gitea.io/en-us/api-usage/).
|
||||||
|
|
||||||
use reqwest::header;
|
use reqwest::header;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use std::result::Result as StdResult;
|
use std::result::Result as StdResult;
|
||||||
|
|
Loading…
Reference in New Issue