forked from xushengs/flutter_markdown_latex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Roger Shi
committed
Nov 17, 2023
1 parent
9dfd515
commit 6e905e7
Showing
1 changed file
with
5 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |