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

Use CARGO_REGISTRY_TOKEN instead of CARGO_API_KEY #28

Closed
MarcoIeni opened this issue Feb 1, 2022 · 3 comments
Closed

Use CARGO_REGISTRY_TOKEN instead of CARGO_API_KEY #28

MarcoIeni opened this issue Feb 1, 2022 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@MarcoIeni
Copy link
Member

Environment variable CARGO_REGISTRY_TOKEN is suggested for CI. Check if you can use it instead of CARGO_API_KEY.
docs here

You can probably remove this line after:

args: --token {{ "${{ secrets.CARGO_API_KEY " }}}}

Also update the website docs.

@MarcoIeni MarcoIeni added enhancement New feature or request good first issue Good for newcomers labels Feb 1, 2022
@RishiKumarRay
Copy link

Do we have to go for CI?

@MarcoIeni
Copy link
Member Author

I am not sure what you mean, but we automatically invoke cargo publish on every tag here:

publish-cargo:
name: Publishing to Cargo
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: publish
args: --token {{ "${{ secrets.CARGO_API_KEY " }}}}

This command needs to know the API key.

@MarcoIeni
Copy link
Member Author

updated website in rust-github/rust-github.github.io@277d240

template updated in c3ded20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants