Skip to content

Commit

Permalink
chore: πŸš€ update github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dhiyaaulauliyaa committed May 30, 2024
1 parent 2c68385 commit b8401ea
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,26 @@ on:

jobs:
publish:
name: "Publish to pub.dev"
permissions:
id-token: write # This is required for authentication using OIDC
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup dart
uses: dart-lang/setup-dart@v1
with:
sdk: "3.0.0"

- name: Setup flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.10.0"
- run: flutter pub get
- uses: dart-lang/setup-dart@v1

- name: Update dependencies
run: flutter pub get

- name: Publish
run: dart pub publish --force
run: flutter pub publish --force

0 comments on commit b8401ea

Please # to comment.