Update docs #2
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: Forui Hooks Publish | |
| on: | |
| push: | |
| tags: | |
| - 'forui_hooks/**' | |
| jobs: | |
| publish: | |
| name: Publish to pub.dev | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write | |
| defaults: | |
| run: | |
| working-directory: forui_hooks | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: subosito/flutter-action@v2.23.0 | |
| with: | |
| flutter-version: 3.x | |
| - uses: google-github-actions/auth@v3 | |
| with: | |
| workload_identity_provider: ${{ vars.GCP_WORKLOAD_IDENTITY_PROVIDER }} | |
| service_account: ${{ vars.GCP_SERVICE_ACCOUNT }} | |
| - working-directory: forui | |
| run: | | |
| flutter pub get | |
| dart run build_runner build --delete-conflicting-outputs | |
| - run: flutter pub get | |
| - run: gcloud auth print-identity-token --audiences=https://pub.dev | dart pub token add https://pub.dev | |
| - run: dart pub publish --force |