Skip to content

Commit

Permalink
Update pub_workflow.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lohanidamodar authored Aug 2, 2024
1 parent fab3429 commit 2e64791
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/pub_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,21 @@ name: Publish to pub.dev
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+*'
- '[0-9]+\.[0-9]+\.[0-9]+*'

jobs:
publish:
permissions:
id-token: write
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
with:
environment: pub.dev
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- name: Install dependencies
run: flutter pub get
- uses: dart-lang/setup-dart@v1
- name: Publish
run: dart pub publish --force

0 comments on commit 2e64791

Please sign in to comment.