docs: Improve description of flame_gamepads package (#3894) #390
This file contains hidden or 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
| name: Tag release | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| publish-packages: | |
| name: Create tags for release | |
| permissions: | |
| actions: write | |
| contents: write | |
| runs-on: [ ubuntu-latest ] | |
| if: contains(github.event.head_commit.message, 'chore(release)') | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: subosito/flutter-action@v2 | |
| - uses: bluefireteam/melos-action@v3 | |
| with: | |
| tag: true | |
| - name: Create v-tag and GitHub release for flame | |
| run: | | |
| # Get the flame version from its pubspec | |
| FLAME_VERSION=$(grep '^version:' packages/flame/pubspec.yaml | awk '{print $2}') | |
| TAG="v${FLAME_VERSION}" | |
| # Create the short v-tag if it doesn't already exist | |
| if ! git tag -l "$TAG" | grep -q .; then | |
| git tag "$TAG" | |
| git push origin "$TAG" | |
| fi | |
| # Extract changelog for this version (everything between first and second ## headings) | |
| CHANGELOG=$(awk '/^## /{if(found) exit; found=1; next} found' packages/flame/CHANGELOG.md) | |
| # Create GitHub release | |
| gh release create "$TAG" \ | |
| --title "Flame $TAG" \ | |
| --notes "$CHANGELOG" | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Trigger publish for unpublished packages | |
| run: | | |
| melos exec -c1 --no-published --no-private --order-dependents -- \ | |
| gh workflow run release-publish.yml \ | |
| --ref \$MELOS_PACKAGE_NAME-v\$MELOS_PACKAGE_VERSION | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |