Merge pull request #35 from NextFaze/feature/package-info-version #7
Workflow file for this run
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: | |
- '[0-9]+.[0-9]+.[0-9]+*' | |
jobs: | |
job-release: | |
permissions: | |
id-token: write # This is required for authentication using OIDC | |
timeout-minutes: 30 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- uses: dart-lang/setup-dart@v1 | |
- name: 'Fetch packages' | |
run: dart pub get | |
- name: Build generated files | |
run: dart run build_runner build --delete-conflicting-outputs | |
- name: 'Analyze project' | |
run: flutter analyze | |
- name: 'Run tests' | |
run: flutter test | |
- name: 'Publish' | |
run: dart pub publish --force |