chore: Release 5.3.6 #32
Workflow file for this run
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
| # For Flutter publish, a tag must be created first so we create a Github Release | |
| # Then this should trigger the publish to Pub.dev workflow | |
| name: Publish to Github | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| types: | |
| - closed | |
| branches: | |
| - main | |
| - rel/** | |
| jobs: | |
| publish: | |
| if: | | |
| github.event_name == 'workflow_dispatch' || | |
| (github.event.pull_request.merged == true && | |
| contains(github.event.pull_request.title, 'chore: Release')) | |
| runs-on: ubuntu-latest | |
| outputs: | |
| version: ${{ steps.version.outputs.version }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Get version from pubspec.yaml | |
| id: version | |
| run: | | |
| VERSION=$(grep "^version:" pubspec.yaml | sed 's/version: //' | tr -d ' ') | |
| echo "version=$VERSION" >> $GITHUB_OUTPUT | |
| echo "Version: $VERSION" | |
| create-release: | |
| needs: publish | |
| uses: OneSignal/sdk-actions/.github/workflows/github-release.yml@main | |
| with: | |
| version: ${{ needs.publish.outputs.version }} |