stm32f1-hal 0.14.1

HAL for the STM32F1 family
Documentation
name: Release

on:
  workflow_dispatch:
  push:
    tags:
      - "v*"

jobs:
  ci:
    uses: ./.github/workflows/ci.yml

  publish:
    if: github.ref_type == 'tag'
    needs: ci
    runs-on: ubuntu-latest
    environment: release # Optional: for enhanced security
    permissions:
      id-token: write # Required for OIDC token exchange
    steps:
      - uses: actions/checkout@v6
      - name: Cache .cargo and target
        uses: actions/cache@v4
        with:
          path: |

            ~/.rustup
            ~/.cargo
            ./target
          key: cargo-${{ runner.os }}
      - uses: dtolnay/rust-toolchain@stable
        with:
          targets: thumbv7m-none-eabi
      - uses: rust-lang/crates-io-auth-action@v1
        id: auth
      - name: Publish crate
        run: cargo publish --features=f103,xG
        # run: cargo publish --features=f103,xG --dry-run
        env:
          CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}