Skip to content

Setup separate rustworkx-core publish job with trusted publishers#1630

Merged
IvanIsCoding merged 1 commit into
Qiskit:mainfrom
mtreinish:trusted-publishers-crates.io
Jul 9, 2026
Merged

Setup separate rustworkx-core publish job with trusted publishers#1630
IvanIsCoding merged 1 commit into
Qiskit:mainfrom
mtreinish:trusted-publishers-crates.io

Conversation

@mtreinish

Copy link
Copy Markdown
Member

This commit splits out the release publish job for the rustworkx-core crate to crates.io from the wheels file into a separate job workflow file. This then lets us setup the cargo publish job to use the trusted publishers mechanism instead of a secret token for authentication which is more secure. The docs for using trusted publisher are located here:

https://crates.io/docs/trusted-publishing

the new cargo_publish workflow's job is updated to more closely follow the example in the docs. I've already updated the crate's configuration on crates.io to use cargo_publish.yml for the trusted publisher mechanism.

This commit splits out the release publish job for the rustworkx-core
crate to crates.io from the wheels file into a separate job workflow
file. This then lets us setup the cargo publish job to use the trusted
publishers mechanism instead of a secret token for authentication which
is more secure. The docs for using trusted publisher are located here:

https://crates.io/docs/trusted-publishing

the new cargo_publish workflow's job is updated to more closely follow
the example in the docs. I've already updated the crate's configuration
on crates.io to use cargo_publish.yml for the trusted publisher
mechanism.

@IvanIsCoding IvanIsCoding left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! I will let you authorize the workflow on the crates.io side. LGTM

@mergify

mergify Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@IvanIsCoding IvanIsCoding added this pull request to the merge queue Jul 9, 2026
Merged via the queue into Qiskit:main with commit 70a4530 Jul 9, 2026
40 checks passed
@IvanIsCoding

IvanIsCoding commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

@Mergifyio backport stable/0.18

@mergify

mergify Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

backport stable/0.18

✅ Backports have been created

Details

IvanIsCoding pushed a commit that referenced this pull request Jul 9, 2026
) (#1632)

This commit splits out the release publish job for the rustworkx-core
crate to crates.io from the wheels file into a separate job workflow
file. This then lets us setup the cargo publish job to use the trusted
publishers mechanism instead of a secret token for authentication which
is more secure. The docs for using trusted publisher are located here:

https://crates.io/docs/trusted-publishing

the new cargo_publish workflow's job is updated to more closely follow
the example in the docs. I've already updated the crate's configuration
on crates.io to use cargo_publish.yml for the trusted publisher
mechanism.

(cherry picked from commit 70a4530)

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants