Skip to content

Commit

Permalink
fixed flutter publish
Browse files Browse the repository at this point in the history
  • Loading branch information
abdelaziz-mahdy committed Dec 12, 2023
1 parent 6a14aa7 commit 623dda8
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,18 @@ on:

jobs:
publish:
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
# with:
# working-directory: path/to/package/within/repository
permissions:
id-token: write
contents: write
runs-on: ubuntu-latest # Specify the runner environment
steps:
- uses: actions/checkout@v2 # Check out the repository code

- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
cache: true

- name: Set up Dart
uses: dart-lang/setup-dart@v1 # Corrected the path for the Dart setup action

- name: Publish to pub.dev
run: flutter pub publish

0 comments on commit 623dda8

Please sign in to comment.