flaron-sdk 1.0.0

Official Rust SDK for writing Flaron edge flares - WebAssembly modules that run on the Flaron CDN edge runtime.
Documentation
name: Release

on:
  push:
    tags: ["v*"]

# Trusted publishing via crates.io OIDC.
# Requires a "GitHub Actions" trusted publisher to be configured for the
# `flaron-sdk` crate on crates.io BEFORE the first OIDC publish:
#   https://crates.io/docs/trusted-publishing
# Until then, the first 0.99.0 publish is performed manually with
# `cargo publish` from a maintainer machine.

jobs:
  publish:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      id-token: write
    steps:
      - uses: actions/checkout@v4

      - uses: dtolnay/rust-toolchain@stable

      - name: Test
        run: cargo test

      - name: Authenticate to crates.io via OIDC
        uses: rust-lang/crates-io-auth-action@v1
        id: auth

      - name: Publish to crates.io
        run: cargo publish
        env:
          CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}