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

Publish GitHub release after cargo publish has succeeded #60

Merged
merged 6 commits into from
Mar 4, 2024
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
13 changes: 13 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,16 @@ jobs:
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo publish -p "${{ matrix.package }}" --locked
bublish_github_release:
needs: ["setup", "publish_idl2json", "publish_idl2json_cli"]
name: Publish GitHub release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Publish GitHub release
run: |
GIT_TAG=${{ needs.setup.outputs.GIT_TAG }}
echo "Publishing release $GIT_TAG..."
gh release edit "$GIT_TAG" --draft=false
env:
GH_TOKEN: ${{ github.token }}
8 changes: 4 additions & 4 deletions 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ resolver = "2"

[workspace.package]
# Note: On update, please also update the dependency versions in src/*_cli/Cargo.toml
version = "0.9.3-alpha.1"
version = "0.9.3-alpha.3"

[workspace.dependencies]
candid = { version = "0.9.0", features = ["parser"] }
2 changes: 1 addition & 1 deletion src/idl2json_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ candid = { workspace = true }
clap = { version = "3.1.6", features = [ "derive" ] }
fn-error-context = "0.2.1"
serde_json = "^1.0"
idl2json = { path = "../idl2json", version="0.9.3-alpha.1", features = ["clap", "crypto"] }
idl2json = { path = "../idl2json", version="0.9.3-alpha.3", features = ["clap", "crypto"] }
anyhow = "1"

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion src/yaml2candid_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"

[dependencies]
clap = { version = "3.1.6", features = [ "derive" ] }
yaml2candid = { path = "../yaml2candid", version = "0.9.3-alpha.1" }
yaml2candid = { path = "../yaml2candid", version = "0.9.3-alpha.3" }

[build-dependencies]
toml = "0.5.9"
Loading