Skip to content

Commit 4d9cddb

Browse files
Update publish.yaml
1 parent 369e7e5 commit 4d9cddb

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

.github/workflows/publish.yaml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,26 @@ jobs:
1717
uses: github/actions-oidc-debugger@main
1818
with:
1919
audience: '${{ github.server_url }}/${{ github.repository_owner }}'
20-
dart-pipeline:
21-
uses: affinidi/pipeline-dart/.github/workflows/release.yaml@main
22-
secrets: inherit
20+
- name: Setup Flutter SDK
21+
uses: flutter-actions/setup-flutter@v4
22+
with:
23+
channel: stable
24+
version: '3.27.0'
25+
26+
- name: Setup pub.dev credentials
27+
uses: flutter-actions/setup-pubdev-credentials@v1
28+
29+
- run: echo "RELEASE_VERSION=$(echo ${GITHUB_REF#refs/tags/} | cut -d'-' -f2,3 | cut -c2- )" >> $GITHUB_ENV
30+
- name: Extract Project Name from Tag
31+
run: echo "PROJECT_NAME=$(echo ${GITHUB_REF#refs/tags/} | cut -d'-' -f1)" >> $GITHUB_ENV
32+
33+
- name: Get GITHUB_ENV
34+
run: cat $GITHUB_ENV
35+
36+
- name: pub get
37+
run: flutter pub get
38+
39+
- run: sed -i "s|^version: .*|version: ${RELEASE_VERSION}|" pubspec.yaml
40+
- run: dart pub publish --skip-validation --force
41+
42+

0 commit comments

Comments
 (0)