diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..240d5c17 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,24 @@ +name: Publish + +on: + push: + tags: ["*"] + +jobs: + publish: + name: Publish to crates.io + runs-on: ubuntu-latest + environment: publish + permissions: + # Required for OIDC token exchange + id-token: write + steps: + - name: Checkout repository + uses: actions/checkout@v5 + - name: Authenticate with crates.io + id: auth + uses: rust-lang/crates-io-auth-action@v1 + - name: Publish to crates.io + env: + CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} + run: cargo publish diff --git a/release.toml b/release.toml deleted file mode 100644 index f74b710a..00000000 --- a/release.toml +++ /dev/null @@ -1,2 +0,0 @@ -dependent-version = "fix" -allow-branch = ["master"]