Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release alpha4 #22

Merged
merged 5 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 17 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ env:
jobs:
publish:
runs-on: ubuntu-latest
permissions: write-all

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -39,20 +40,30 @@ jobs:
- name: Run tests with all features
run: cargo test --all-features

# - name: publish crates
# uses: katyo/publish-crates@v2
# with:
# # crates.io registry token
# registry-token: ${{ secrets.crates_io }}

- name: publish crates dry run
run: |
cargo login ${{ secrets.crates_io }}
cargo publish -p encrypt_config --dry-run
cargo publish -p encrypt_config_derive --dry-run

- name: publish crates
uses: katyo/publish-crates@v2
with:
# crates.io registry token
registry-token: ${{ secrets.crates_io }}
run: |
cargo publish -p encrypt_config
cargo publish -p encrypt_config_derive

- name: Create Tag
uses: actions/github-script@v6
with:
script: |
const {VERSION} = process.env
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: `refs/tags/v${VERSION}`,
ref: 'refs/tags/v${{ steps.extract-version.outputs.VERSION }}',
sha: context.sha
})
33 changes: 8 additions & 25 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,32 +1,15 @@
[package]
name = "encrypt-config"
[workspace]
members = ["encrypt-config", "encrypt-config-derive", "tests"]
resolver = "2"

[workspace.package]
version = "0.0.1-alpha4"
authors = ["Louis <[email protected]>"]
description = "A rust crate to manage, persist and encrypt your configurations."
license = "MIT"
edition = "2021"
repository = "https://github.com/kingwingfly/encrypt-config"

[dependencies]
snafu = { version = "0.7.5" }
serde = { version = "1", optional = true }
serde_json = { version = "1", optional = true }
rsa = { version = "0.9.6", features = ["serde"] }
keyring = "2.1.0"
dirs-next = { version = "2.0.0", optional = true }
rand = "0.8.5"
encrypt-config-derive = { path = "encrypt-config-derive", version = "0.0.1-alpha4" }

[profile.release]
lto = true
opt-level = 3
codegen-units = 1

[profile.dev]
opt-level = 3

[features]
default = ["serde"]
serde = ["dep:serde", "dep:serde_json"]
default_config_dir = ["dep:dirs-next", "encrypt-config-derive/default_config_dir"]
protobuf = []
[workspace.dependencies]
encrypt_config = { path = "encrypt-config", version = "^0.0.1-alpha3" }
encrypt_config_derive = { path = "encrypt-config-derive", version = "^0.0.1-alpha3" }
242 changes: 0 additions & 242 deletions README.md

This file was deleted.

1 change: 1 addition & 0 deletions README.md
21 changes: 13 additions & 8 deletions encrypt-config-derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
[package]
name = "encrypt-config-derive"
version = "0.0.1-alpha4"
authors = ["Louis <[email protected]>"]
description = "A rust crate to manage, persist and encrypt your configurations."
license = "MIT"
edition = "2021"
repository = "https://github.com/kingwingfly/encrypt-config"
name = "encrypt_config_derive"
version.workspace = true
authors.workspace = true
description.workspace = true
license.workspace = true
edition.workspace = true
repository.workspace = true

[dependencies]
syn = { version = "2.0", features = ["full"] }
quote = "1.0"

[dev-dependencies]
serde = { version = "1" }
encrypt_config = { workspace = true }

[lib]
proc-macro = true

[features]
default_config_dir = []
default = []
default_config_dir = ["encrypt_config/default_config_dir"]
1 change: 1 addition & 0 deletions encrypt-config-derive/README.md
Loading