-
-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ed7ef0c
commit 25eb3f4
Showing
6 changed files
with
68 additions
and
104 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
paths: | ||
- packages/win32/CHANGELOG.md | ||
- packages/win32/pubspec.yaml | ||
workflow_dispatch: | ||
|
||
jobs: | ||
check-release: | ||
if: ${{ github.event_name != 'workflow_dispatch' }} | ||
|
||
runs-on: ubuntu-latest | ||
|
||
outputs: | ||
should_publish: ${{ steps.check_release.outputs.should_publish }} | ||
|
||
steps: | ||
- name: 📚 Git Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: 🔍 Check if There is a Release Commit | ||
id: check_release | ||
run: | | ||
latest_commit_msg=$(git log -1 --pretty=format:%s) | ||
echo "📜 Latest commit: $latest_commit_msg" | ||
if [[ "$latest_commit_msg" =~ ^chore\(release\):\ v.* ]]; then | ||
echo "🎉 Release commit detected. Proceeding with the publish step." | ||
echo "should_publish=true" >> $GITHUB_OUTPUT | ||
else | ||
echo "❌ No release commit detected. Skipping the publish step." | ||
echo "should_publish=false" >> $GITHUB_OUTPUT | ||
fi | ||
release: | ||
needs: [check-release] | ||
if: ${{ github.event_name == 'workflow_dispatch' || needs.check-release.outputs.should_publish == 'true' }} | ||
uses: halildurmus/workflows/.github/workflows/dart_release.yml@main | ||
with: | ||
working_directory: packages/win32 | ||
secrets: | ||
token: ${{ secrets.PAT }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters