android-sms-gateway 0.3.0

Rust client library for SMSGate API
Documentation
name: Release

on:
  push:
    tags:
      - "v*"

permissions:
  contents: read

jobs:
  publish:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          persist-credentials: false
      - uses: actions-rust-lang/setup-rust-toolchain@v1
        with:
          cache: false
      - run: cargo test --all-features
      - name: Install cargo-edit
        run: cargo install cargo-edit
      - name: Set version from tag
        run: cargo set-version "${GITHUB_REF_NAME#v}"
      - run: cargo publish --allow-dirty
        env:
          CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}