Skip to content

Merge pull request #51 from kushalmahapatro/feature/pubspec-overrides… #8

Merge pull request #51 from kushalmahapatro/feature/pubspec-overrides…

Merge pull request #51 from kushalmahapatro/feature/pubspec-overrides… #8

Workflow file for this run

# .github/workflows/publish.yml
name: Publish to pub.dev
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*' # tag pattern on pub.dev: 'v'
# Publish using custom workflow
jobs:
publish:
permissions:
id-token: write # Required for authentication using OIDC
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter --version
- name: Install dependencies
run: dart pub get
- name: Analyze project source
run: dart analyze
- name: Run tests
run: dart test
- name: Run dart publish (dry run)
run: dart pub publish --dry-run
- name: Publish
uses: k-paxian/dart-package-publisher@v1.5.1
with:
credentialJson: ${{ secrets.CREDENTIAL_JSON }}
flutter: true
skipTests: true