Skip to content

Commit ceb2849

Browse files
authored
Update publish.yaml
1 parent 4920763 commit ceb2849

File tree

1 file changed

+9
-16
lines changed

1 file changed

+9
-16
lines changed

.github/workflows/publish.yaml

+9-16
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
1-
name: Publish plugin
1+
name: Publish to pub.dev
22

33
on:
4-
release:
5-
types: [published]
4+
push:
5+
tags:
6+
- 'v[0-9]+.[0-9]+.[0-9]+*'
67

78
jobs:
89
publish:
9-
10-
runs-on: ubuntu-latest
11-
12-
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v1
15-
- name: Publish
16-
uses: k-paxian/[email protected]
17-
with:
18-
credentialJson: ${{ secrets.CREDENTIAL_JSON }}
19-
flutter: true
20-
skipTests: true
21-
force: true
10+
permissions:
11+
id-token: write # Required for authentication using OIDC
12+
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
13+
# with:
14+
# working-directory: path/to/package/within/repository

0 commit comments

Comments
 (0)