Skip to content

Commit c09752f

Browse files
[Added] setup dart step to workflow
1 parent 955a106 commit c09752f

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,16 @@ on:
88
# Publish using the reusable workflow from dart-lang.
99
jobs:
1010
publish:
11+
name: Publish to pub.dev
12+
permissions:
13+
id-token: write # This is required for requesting the JWT
1114
runs-on: ubuntu-22.04
1215
steps:
1316
- name: Checkout App Repo
1417
uses: actions/checkout@v3
1518

16-
- name: Setup Ruby
17-
uses: ruby/setup-ruby@v1
18-
with:
19-
ruby-version: '2.7.2'
20-
21-
- name: Update version in Pubspec
22-
run: ruby update_version.rb
19+
# Setup Dart SDK with JWT token
20+
- uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f
2321

2422
- name: Install Flutter & Build App Bundle
2523
uses: subosito/flutter-action@v2

0 commit comments

Comments
 (0)