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 cbf2670 commit 8797751Copy full SHA for 8797751
.github/workflows/publish.yaml
@@ -1,21 +1,14 @@
1
-name: Publish plugin
+name: Publish to pub.dev
2
3
on:
4
- release:
5
- types: [published]
+ push:
+ tags:
6
+ - 'v[0-9]+.[0-9]+.[0-9]+*'
7
8
jobs:
9
publish:
-
10
- runs-on: ubuntu-latest
11
12
- steps:
13
- - name: Checkout
14
- uses: actions/checkout@v1
15
- - name: Publish
16
- uses: sakebook/[email protected]
17
- with:
18
- credential: ${{ secrets.CREDENTIAL_JSON }}
19
- flutter_package: true
20
- skip_test: true
21
- dry_run: false
+ permissions:
+ 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 commit comments