Skip to content

Commit 4f0ea89

Browse files
authored
Merge pull request #21 from o1-labs/dannywillems/update-publish
Update package name
2 parents 4a76a62 + c2e18e6 commit 4f0ea89

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ env:
1212
CARGO_INCREMENTAL: "1"
1313
# https://nexte.st/book/pre-built-binaries.html#using-nextest-in-github-actions
1414
CARGO_TERM_COLOR: always
15-
# The package name to be used to publish on crates.io
16-
PACKAGE_NAME: stubs_rust
1715
# Rust version to use to build
1816
RUST_VERSION: "1.69"
1917
# OCaml version to use to build
@@ -52,6 +50,7 @@ jobs:
5250
run:
5351
|
5452
eval $(opam env)
55-
cargo publish -p ${{ env.PACKAGE_NAME }} --token ${CRATES_IO_TOKEN}
53+
cargo publish -p ocaml-gen --manifest-path ocaml-gen/Cargo.toml --token ${CRATES_IO_TOKEN}
54+
cargo publish -p ocaml-gen-derive --manifest-path ocaml-gen/derive/Cargo.toml --token ${CRATES_IO_TOKEN}
5655
env:
5756
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,13 @@ to rely on `dune` to update the file. You will need to commit it to make the CI
5757
## Additional resources
5858

5959
You can check the [recording](https://www.youtube.com/watch?v=LuXo2cNkgyA&feature=youtu.be) I made when I first introduced the tool internally.
60+
61+
## Publish a new release
62+
63+
An automatic release is set up with GitHub actions. To make a new release of
64+
ocaml-gen and ocaml-gen-derive:
65+
66+
1. Change the version of `ocaml-gen-derive` in `ocaml-gen/Cargo.toml` to the new
67+
release version.
68+
2. Create a tag with `git tag -m "VERSION" -a "x.y.z"`
69+
3. Push the tag with `git push --tags`

0 commit comments

Comments
 (0)