Skip to content

Commit

Permalink
Rewrite GH action
Browse files Browse the repository at this point in the history
Google's instructions are broken as they only work for Dart packages but
not Flutter plugins.
  • Loading branch information
saghul committed Aug 2, 2023
1 parent 527011e commit 453dcf5
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,26 @@ on:

jobs:
publish:

permissions:
id-token: write # This is required for requesting the JWT
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1

steps:
- name: Clone repository
uses: actions/checkout@v3

# This step adds the auth token for pub.dev
- name: Set up Dart
uses: dart-lang/setup-dart@v1
with:
sdk: stable

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

- name: Publish to pub.dev
id: pub_release
uses: leancodepl/mobile-tools/.github/actions/pub-release@pub-release-v1

0 comments on commit 453dcf5

Please sign in to comment.