Skip to content
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
8 changes: 8 additions & 0 deletions .github/workflows/cargo-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ jobs:
fi
}

needs_publish hyperlight-js-common
needs_publish hyperlight-js-runtime
needs_publish hyperlight-js

Expand All @@ -95,13 +96,20 @@ jobs:
-r crates.io \
-- \
cargo publish --workspace --dry-run \
-p hyperlight-js-common \
-p hyperlight-js \
-p hyperlight-js-runtime

- name: Authenticate with crates.io
uses: rust-lang/crates-io-auth-action@v1
id: crates-io-auth

- name: Publish hyperlight-js-common
run: cargo publish -p hyperlight-js-common
env:
CARGO_REGISTRY_TOKEN: ${{ steps.crates-io-auth.outputs.token }}
if: ${{ env.PUBLISH_HYPERLIGHT_JS_COMMON != 'false' && !inputs.dry_run }}

- name: Publish hyperlight-js-runtime
run: cargo publish -p hyperlight-js-runtime
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gh-publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json

name: Publish npm packages
name: Create GitHub Release

on:
workflow_dispatch:
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
tar -zcvf benchmarks_Linux_hyperv3.tar.gz benchmarks_Linux_hyperv3

- name: Create GH Release
if: ${{ inputs.dry_run == 'false' }}
if: ${{ !inputs.dry_run }}
run: |
gh release create ${{ inputs.version }} \
--generate-notes \
Expand Down
Loading