Skip to content

Commit

Permalink
added workflow for publishing crate
Browse files Browse the repository at this point in the history
  • Loading branch information
0xMimir committed Oct 5, 2023
1 parent f3f8f2f commit 954eed5
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 8 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Deploy-Rust

on:
push:
branches:
- "release"

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Login to Crates.io and deploy the package
run: |
cargo login ${{secrets.CRATES_TOKEN}}
cargo publish
8 changes: 3 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ name: Rust

on:
push:
branches: ["master"]


env:
CARGO_TERM_COLOR: always
branches:
- "master"
pull_request:

jobs:
clippy:
Expand Down
9 changes: 6 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
name = "adtest"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
repository = "https://github.com/0xMimir/adtest"
authors = ["Mimir <mimirz@proton.me>"]
description = "Library for better test generation"
keywords = ["tests"]
license = "MIT"

[lib]
proc-macro = true
Expand All @@ -12,7 +15,7 @@ proc-macro = true
proc-macro2 = "1.0.67"
quote = "1.0.33"
syn = { version = "2.0.37", features = ["full", "extra-traits"] }
trybuild = "1.0.71"

[dev-dependencies]
tokio = { version = "1.32.0", features = ["full"] }
trybuild = "1.0.71"

0 comments on commit 954eed5

Please sign in to comment.