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 d7016d6 commit 9e5f2d5Copy full SHA for 9e5f2d5
templates/dart/.github/workflows/publish.yml.twig
@@ -3,12 +3,17 @@ name: Publish to pub.dev
3
on:
4
push:
5
tags:
6
- - '[0-9]+\.[0-9]+\.[0-9]+.*'
+ - '[0-9]+.[0-9]+.[0-9]+*' # tag pattern on pub.dev: 'v{{version}'
7
8
jobs:
9
publish:
10
permissions:
11
- 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:
+ - uses: actions/checkout@v3
15
+ - uses: dart-lang/setup-dart@v1
16
+ - name: Install dependencies
17
+ run: dart pub get
18
+ - name: Publish
19
+ run: dart pub publish --force
0 commit comments