message: Use Github Action to automatically publish crate to crate.io
diff: @@ -120,3 +120,25 @@ jobs:
  with:
  command: clippy
  args: --no-default-features --features=cli,env-file,${{ matrix.client }} -- -D warnings
  +
  +on:
  + create:
  + tags:
  + - v*
  +
  +name: Publish Crate
  +
  +jobs:
  + deploy:
  + name: Deploy a new version of Rspotify to crate.io
  + runs-on: ubuntu-latest
  + steps:
  + - uses: actions/checkout@v2
  + - uses: actions-rs/toolchain@v1
  + with:
  + toolchain: stable
  + override: true
  + - uses: katyo/publish-crates@v1
  + with:
  + registry-token: ${{secrets.CARGO_REGISTRY_TOKEN}}
  +
  