ci: Fix GitHub Actions not respecting globs #29
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
| name: "package" | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| - 'release/**' | |
| paths: | |
| - '**.dart' | |
| - './*.yaml' | |
| - .github/workflows/_base-dart.yaml | |
| - .github/workflows/package.yaml | |
| release: | |
| types: [published] | |
| # call the base workflow with the package path | |
| jobs: | |
| dart: | |
| uses: ./.github/workflows/_base-dart.yaml | |
| with: | |
| path: '.' | |
| publish: | |
| runs-on: ubuntu-latest | |
| needs: [dart] | |
| if: github.event_name == 'release' && github.event.action == 'published' | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: dart-lang/setup-dart@v1 | |
| with: | |
| sdk: stable | |
| - name: "Get dependencies" | |
| run: dart pub get | |
| - name: Publish to pub.dev | |
| env: | |
| PUB_DEV_TOKEN: ${{ secrets.PUB_DEV_TOKEN }} | |
| run: dart pub publish --force |