diff --git a/.github/workflows/cargo-publish.yml b/.github/workflows/cargo-publish.yml index e4c6fbf..bb83372 100644 --- a/.github/workflows/cargo-publish.yml +++ b/.github/workflows/cargo-publish.yml @@ -1,8 +1,6 @@ name: Publish to crates.io on: - release: - types: [published] workflow_dispatch: inputs: dry_run: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c846d4e..0cba6e8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -56,3 +56,10 @@ jobs: run: | VERSION="${{ steps.version.outputs.version }}" gh workflow run publish-examples.yml --ref "v$VERSION" + + - name: Trigger crates.io publish + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + VERSION="${{ steps.version.outputs.version }}" + gh workflow run cargo-publish.yml --ref "v$VERSION" -f dry_run=false