Skip to content

Commit

Permalink
ci: publish new version when new tag is pushed
Browse files Browse the repository at this point in the history
  • Loading branch information
jokerttu committed Dec 5, 2024
1 parent e6bab8c commit 783647c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 783647c

Please sign in to comment.