8000 Update publish.yaml · flutter-webrtc/flutter-webrtc@ff21bc6 · GitHub
[go: up one dir, main page]

Skip to content

Commit ff21bc6

Browse files
authored
Update publish.yaml
1 parent 3762bc9 commit ff21bc6

File tree

1 file changed

+10
-30
lines changed

1 file changed

+10
-30
lines changed

.github/workflows/publish.yaml

Lines changed: 10 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +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:
8-
build:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- uses: actions/checkout@v2
12-
- name: Install Flutter
13-
uses: subosito/flutter-action@v2
14-
with:
15-
channel: 'stable'
16-
- name: Install project dependencies
17-
run: flutter pub get
18-
- name: Dart Format Check
19-
run: dart format lib/ test/ --set-exit-if-changed
20-
- name: Import Sorter Check
21-
run: flutter pub run import_sorter:main --no-comments --exit-if-changed
22-
- name: Dart Analyze Check
23-
run: flutter analyze
24-
- name: Dart Test Check
25-
run: flutter test
26-
#- name: Check Publish Warnings
27-
# run: dart pub publish --dry-run
28-
- name: Publish
29-
uses: k-paxian/dart-package-publisher@v1.5.1
30-
with:
31-
credentialJson: ${{ secrets.CREDENTIAL_JSON }}
32-
flutter: true
33-
skipTests: true
34-
force: true
9+
publish:
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)
0