Skip to content

Commit 828c0a3

Browse files
committed
chore: Version 0.2.0 release
1 parent 2ee1007 commit 828c0a3

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ jobs:
1919
- uses: actions/checkout@v2
2020
- name: Build
2121
run: cargo build --verbose
22+
working-directory: merge-rs
2223
- name: Run tests
2324
run: cargo test --verbose
25+
working-directory: merge-rs
2426
- name: Run clippy
2527
run: cargo clippy --all-targets --all-features -- -D warnings
28+
working-directory: merge-rs
2629
- name: Run audit
2730
run: cargo audit --deny warnings --deny unmaintained --deny unsound --deny yanked
31+
working-directory: merge-rs

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v3
1616
- uses: dtolnay/rust-toolchain@stable
17-
- run: cargo package
17+
- run: cargo package --locked
1818
working-directory: merge-rs
1919
- uses: taiki-e/create-gh-release-action@v1
2020
with:
@@ -23,3 +23,7 @@ jobs:
2323
branch: main
2424
env:
2525
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
- run: cargo publish --locked
27+
working-directory: merge-rs
28+
env:
29+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Generated by Cargo
22
# will have compiled files and executables
3-
/target/
3+
target/
44

55
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
66
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html

Cargo.toml

Lines changed: 0 additions & 6 deletions
This file was deleted.

merge-rs/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "merge-rs"
33
description = "A small library that cuts down on the amount of code required to merge two arbitrary structs into a new struct."
44
repository = "https://github.com/dhable/merge-rs"
5-
version = "0.1.2"
5+
version = "0.2.0"
66
edition = "2021"
77
rust-version = "1.58.1"
88
license = "MIT"

0 commit comments

Comments
 (0)