Skip to content

ci: Fix GitHub Actions not respecting globs #29

ci: Fix GitHub Actions not respecting globs

ci: Fix GitHub Actions not respecting globs #29

Workflow file for this run

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