Skip to content

Commit

Permalink
adding permission and fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
abdelaziz-mahdy committed Dec 12, 2023
1 parent 623dda8 commit 572d074
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,23 @@ on:

jobs:
publish:
permissions:
id-token: write
contents: write
runs-on: ubuntu-latest # Specify the runner environment
steps:
- uses: actions/checkout@v2 # Check out the repository code
- uses: actions/checkout@v3 # Check out the repository code

# This action adds a token needed for pub.dev
- name: Set up Dart
uses: dart-lang/setup-dart@v1 # Corrected the path for the Dart setup action

- 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
run: flutter pub publish --force

0 comments on commit 572d074

Please sign in to comment.