Skip to content

Commit

Permalink
build: publish
Browse files Browse the repository at this point in the history
  • Loading branch information
aljazerzen committed Feb 5, 2024
1 parent c12cea4 commit fc7049b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
tags: [v*]
jobs:
test-job:
publish-crates-io:
runs-on: ubuntu-latest
steps:
# checkout and env setup
Expand All @@ -13,12 +13,10 @@ jobs:
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Build the nix shell
run: nix develop --command just --version
- name: Install Rust toolchain with rustup
run: nix develop --command cargo --version
run: nix develop '.#minimal' --command cargo release --version

# publish
- run: cargo release publish --package connector_arrow --execute --no-confirm
- run: nix develop '.#minimal' --command cargo publish --package connector_arrow
--verbose
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion connector_arrow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = "MIT"
name = "connector_arrow"
readme = "../README.md"
repository = "https://github.com/aljazerzen/connector_arrow"
version = "0.1.0"
version = "0.1.1"

[lib]
crate-type = ["cdylib", "rlib"]
Expand Down
4 changes: 3 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
cargo-nextest
cargo-insta
cargo-audit
cargo-release
pkg-config
docker-compose
(dontCheckPython python311Packages.yamlfix)
Expand All @@ -41,5 +40,8 @@
devShells.default = pkgs.mkShell {
buildInputs = essentials ++ dbs;
};
devShells.minimal = pkgs.mkShell {
buildInputs = with pkgs; [rustup];
};
});
}

0 comments on commit fc7049b

Please sign in to comment.