diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 19e692f..e1c9c4b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,7 +16,9 @@ name: Publish to pub.dev on: - workflow_call: # called when release-please steps.release.outputs.release_created + push: + tags: + - "v[0-9]+.[0-9]+.[0-9]+" workflow_dispatch: # manually trigger if previous runs failed concurrency: diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index ad63dc3..bb1c17e 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -35,9 +35,3 @@ jobs: with: token: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }} release-type: dart - - publish: - needs: release-please - if: ${{ needs.release-please.outputs.release_ready }} - uses: ./.github/workflows/publish.yml - secrets: inherit