Skip to content

Commit

Permalink
ci(repo): Fix publish crates
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Sep 6, 2024
1 parent 57ff364 commit 7e8cb1a
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 19 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/publish_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set NATS environment variables
shell: bash
run: |
set_env_var() {
echo "$1=${!1:-$2}" >> $GITHUB_ENV
echo "$1=${!1:-$2}" >> .env
}
set_env_var "NATS_URL" "nats://127.0.0.1:4222"
set_env_var "NATS_ADMIN_PASS" "default_pass"
set_env_var "NATS_PUBLIC_PASS" "default_pass"
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
Expand Down
20 changes: 10 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ homepage = "https://fuel.network/"
license = "Apache-2.0"
repository = "https://github.com/fuellabs/data-systems"
rust-version = "1.79.0"
version = "0.0.6"
version = "0.0.7"

[workspace.dependencies]
anyhow = "1.0"
Expand Down Expand Up @@ -42,11 +42,11 @@ tracing = "0.1.40"
thiserror = "1.0"

fuel-streams = { path = "crates/fuel-streams" }
fuel-data-parser = { version = "0.0.6", path = "crates/fuel-data-parser" }
fuel-streams-core = { version = "0.0.6", path = "crates/fuel-streams-core" }
fuel-streams-publisher = { version = "0.0.6", path = "crates/fuel-streams-publisher" }
fuel-streams-macros = { version = "0.0.6", path = "crates/fuel-streams-macros" }
subject-derive = { version = "0.0.6", path = "crates/fuel-streams-macros/subject-derive" }
fuel-data-parser = { version = "0.0.7", path = "crates/fuel-data-parser" }
fuel-streams-core = { version = "0.0.7", path = "crates/fuel-streams-core" }
fuel-streams-publisher = { version = "0.0.7", path = "crates/fuel-streams-publisher" }
fuel-streams-macros = { version = "0.0.7", path = "crates/fuel-streams-macros" }
subject-derive = { version = "0.0.7", path = "crates/fuel-streams-macros/subject-derive" }

# Workspace projects
[workspace.metadata.cargo-machete]
Expand Down
3 changes: 1 addition & 2 deletions crates/fuel-streams-core/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ use std::env;
use dotenvy::dotenv;

fn main() {
dotenv().expect(".env file not found");

let _ = dotenv();
if let Ok(value) = env::var("NATS_PUBLIC_PASS") {
println!("cargo:rustc-env=NATS_PUBLIC_PASS={}", value);
}
Expand Down
2 changes: 1 addition & 1 deletion crates/fuel-streams/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ homepage = "https://fuel.network/"
license = "Apache-2.0"
repository = "https://github.com/fuellabs/data-systems"
rust-version = "1.79.0"
version = "0.0.6"
version = "0.0.7"

[dependencies]
displaydoc = { workspace = true }
Expand Down

0 comments on commit 7e8cb1a

Please sign in to comment.