Skip to content

fix(main): add platform implementations as dependencies #2

fix(main): add platform implementations as dependencies

fix(main): add platform implementations as dependencies #2

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*.*.*'
permissions:
contents: write
jobs:
create-release:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set Up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
- name: Install Melos
run: |
flutter pub global activate melos
echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
- name: Bootstrap Workspace
run: melos bootstrap
- name: Run Tests
run: melos test
- name: Run Analysis
run: melos analyze
- name: Generate Changelog
id: changelog
run: |
# Get previous tag
PREV_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || echo "")
if [ -z "$PREV_TAG" ]; then
# First release, get all commits
COMMITS=$(git log --pretty=format:"- %s (%h)" --no-merges)
else
# Get commits since previous tag
COMMITS=$(git log ${PREV_TAG}..HEAD --pretty=format:"- %s (%h)" --no-merges)
fi
# Save to file for multiline output
echo "$COMMITS" > changelog.txt
# Set output
echo "previous_tag=$PREV_TAG" >> $GITHUB_OUTPUT
- name: Create Release
uses: softprops/action-gh-release@v1
with:
body_path: changelog.txt
draft: false
prerelease: false
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Notify Success
run: |
echo "✅ Release ${{ github.ref_name }} created successfully!"
echo "📦 View release at: https://github.com/${{ github.repository }}/releases/tag/${{ github.ref_name }}"