mirror of
https://github.com/bytedream/serde-inline-default.git
synced 2026-08-04 21:10:40 +02:00
chore: replaced deprecated cargo publish token flag with env variable
This commit is contained in:
@@ -8,10 +8,16 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Setup Rust
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
with:
|
||||||
|
toolchain: stable
|
||||||
|
|
||||||
- name: Publish crate
|
- name: Publish crate
|
||||||
run: cargo publish --token ${{ secrets.CRATES_TOKEN }}
|
env:
|
||||||
|
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_TOKEN }}
|
||||||
|
run: cargo publish
|
||||||
|
|||||||
Reference in New Issue
Block a user