We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3373fd7 commit 15ab98dCopy full SHA for 15ab98d
.github/workflows/publish.yml
@@ -3,12 +3,18 @@ name: Publish to pub.dev
3
on:
4
push:
5
tags:
6
- - '[0-9]+\.[0-9]+\.[0-9]+*'
+ - 'v[0-9]+.[0-9]+.[0-9]+*' # tag pattern on pub.dev: 'v{{version}'
7
8
+# Publish using custom workflow
9
jobs:
10
publish:
11
permissions:
- id-token: write
12
- uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
13
- with:
14
- environment: pub.dev
+ id-token: write # Required for authentication using OIDC
+ runs-on: ubuntu-latest
+ steps:
15
+ - uses: actions/checkout@v3
16
+ - uses: dart-lang/setup-dart@v1
17
+ - name: Install dependencies
18
+ run: dart pub get
19
+ - name: Publish
20
+ run: dart pub publish --force
0 commit comments