Skip to content

Commit

Permalink
ci: create publishing task
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikssonJoakim committed Jul 13, 2024
1 parent 584d956 commit 0ab32cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ jobs:
- name: Publish crates to crates.io
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo workspaces publish --publish-as-is --allow-branch main
run: cargo make publish-crates
7 changes: 7 additions & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,10 @@ for workspace_dependency in ${workspace_dependencies[@]}; do
done
'''

[tasks.publish-crates]
dependencies = ["install-cargo-workspaces"]
script = "cargo workspaces publish --publish-as-is --allow-branch main"

[tasks.install-llvm-tools-preview]
install_crate = { rustup_component_name = "llvm-tools-preview" }

Expand Down Expand Up @@ -660,6 +664,9 @@ install_crate = { crate_name = "cargo-hack", min_version = "0.6.14" }
[tasks.install-toml-cli]
install_crate = { crate_name = "toml-cli", min_version = "0.2.3" }

[tasks.install-cargo-workspaces]
install_crate = { crate_name = "cargo-workspaces", min_version = "0.3.2" }

[config]
default_to_workspace = false
min_version = "0.36.3"
Expand Down

0 comments on commit 0ab32cf

Please sign in to comment.