Fixing github CI/ test 8 #20
This file contains 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: Publish to pub.dev | ||
on: | ||
push: | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+*' | ||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- uses: subosito/flutter-action@v2 | ||
- name: Install dependencies | ||
run: flutter pub get | ||
- name: Check Publish Warnings | ||
run: dart pub publish --dry-run | ||
publish: | ||
needs: 'tests' | ||
permissions: | ||
id-token: write # Required for authentication using OIDC | ||
uses: subosito/flutter-action@v2/.github/workflows/workflow.yaml@main # Added build_runner step | ||
with: | ||
environment: 'pub.dev' |