diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f8aec67..16f5560 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,17 +4,20 @@ name: Publish to pub.dev on: push: tags: - # must align with the tag-pattern configured on pub.dev, often just replace - # with [0-9]+.[0-9]+.[0-9]+* - - 'v[0-9]+.[0-9]+.[0-9]+*' # tag-pattern on pub.dev: 'v' - # If you prefer tags like '1.2.3', without the 'v' prefix, then use: - # - '[0-9]+.[0-9]+.[0-9]+*' # tag-pattern on pub.dev: '' - # If your repository contains multiple packages consider a pattern like: - # - 'my_package_name-v[0-9]+.[0-9]+.[0-9]+*' + - 'v[0-9]+.[0-9]+.[0-9]+*' # tag pattern on pub.dev: 'v' -# Publish using the reusable workflow from dart-lang. +# Publish using custom workflow jobs: publish: - uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 - # with: - # working-directory: path/to/package/within/repository \ No newline at end of file + permissions: + id-token: write # This is required for authentication using OIDC + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: dart-lang/setup-dart@v1 + - name: Install dependencies + run: flutter pub get + # Here you can insert custom steps you need + # - run: dart tool/generate-code.dart + - name: Publish + run: dart pub publish --force \ No newline at end of file