Skip to content

Commit

Permalink
fix: update publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger Shi committed Nov 17, 2023
1 parent 9dfd515 commit 6e905e7
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,12 @@ name: Publish to pub.dev
on:
push:
tags:
# Must align with the tag-pattern configured on pub.dev.
- 'v[0-9]+.[0-9]+.[0-9]+*'
- 'v[0-9]+.[0-9]+.[0-9]+*'

jobs:
publish:
name: Publish
timeout-minutes: 10
runs-on: ubuntu-latest
permissions:
id-token: write # Allows to publish to pub.dev without personal credentials

steps:

- name: Checkout
uses: actions/[email protected]

- uses: subosito/flutter-action@v2
with:
flutter-version: '3.13.9'
channel: 'stable'
- run: flutter pub get
- run: flutter pub publish --dry-run
- run: flutter pub publish --force
id-token: write # Required for authentication using OIDC
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
# with:
# working-directory: path/to/package/within/repository

0 comments on commit 6e905e7

Please sign in to comment.