Skip to content

Commit 85f73a3

Browse files
Merge pull request #867 from appwrite/fix-dart-flutter-workflows
Fix Flutter and Dart Publish workflow
2 parents d7016d6 + f92359e commit 85f73a3

File tree

2 files changed

+23
-9
lines changed

2 files changed

+23
-9
lines changed

templates/dart/.github/workflows/publish.yml.twig

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@ name: Publish to pub.dev
33
on:
44
push:
55
tags:
6-
- '[0-9]+\.[0-9]+\.[0-9]+.*'
6+
- '[0-9]+\.[0-9]+\.[0-9]+*'
77

88
jobs:
99
publish:
1010
permissions:
11-
id-token: write
12-
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
13-
with:
14-
environment: pub.dev
11+
id-token: write # Required for authentication using OIDC
12+
runs-on: ubuntu-latest
13+
steps:
14+
- 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

templates/flutter/.github/workflows/publish.yml.twig

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,21 @@ name: Publish to pub.dev
33
on:
44
push:
55
tags:
6-
- '[0-9]+\.[0-9]+\.[0-9]+.*'
6+
- '[0-9]+\.[0-9]+\.[0-9]+*'
77

88
jobs:
99
publish:
1010
permissions:
1111
id-token: write
12-
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
13-
with:
14-
environment: pub.dev
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Install Flutter
16+
uses: subosito/flutter-action@v2
17+
with:
18+
channel: stable
19+
- name: Install dependencies
20+
run: flutter pub get
21+
- uses: dart-lang/setup-dart@v1
22+
- name: Publish
23+
run: dart pub publish --force

0 commit comments

Comments
 (0)