From 3373fd7e666522c1dc72c5a82bdcb95f1e83d129 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Fri, 31 May 2024 06:19:13 +0545 Subject: [PATCH 1/4] fix pub workflow --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b40c5074..37152488 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,7 +3,7 @@ name: Publish to pub.dev on: push: tags: - - '[0-9]+\.[0-9]+\.[0-9]+.*' + - '[0-9]+\.[0-9]+\.[0-9]+*' jobs: publish: @@ -11,4 +11,4 @@ jobs: id-token: write uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 with: - environment: pub.dev \ No newline at end of file + environment: pub.dev From 15ab98d40be3f146e21220cfa810ad9a39b31271 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Fri, 31 May 2024 06:25:48 +0545 Subject: [PATCH 2/4] update publish to custom flow --- .github/workflows/publish.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 37152488..678598fa 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,12 +3,18 @@ name: Publish to pub.dev on: push: tags: - - '[0-9]+\.[0-9]+\.[0-9]+*' + - 'v[0-9]+.[0-9]+.[0-9]+*' # tag pattern on pub.dev: 'v{{version}' +# Publish using custom workflow jobs: publish: permissions: - id-token: write - uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 - with: - environment: pub.dev + id-token: write # Required for authentication using OIDC + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: dart-lang/setup-dart@v1 + - name: Install dependencies + run: dart pub get + - name: Publish + run: dart pub publish --force \ No newline at end of file From 8bc92be1699d8578d38aee23129d355ab4c23efd Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Fri, 31 May 2024 06:28:09 +0545 Subject: [PATCH 3/4] fix regex --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 678598fa..2cc53780 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,7 +3,7 @@ name: Publish to pub.dev on: push: tags: - - 'v[0-9]+.[0-9]+.[0-9]+*' # tag pattern on pub.dev: 'v{{version}' + - '[0-9]+.[0-9]+.[0-9]+*' # tag pattern on pub.dev: 'v{{version}' # Publish using custom workflow jobs: From 2e3c357800ce7e483f72836037cbd4c4cdfba550 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Fri, 31 May 2024 07:00:13 +0545 Subject: [PATCH 4/4] Update publish.yml --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2cc53780..b989019b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,7 +3,7 @@ name: Publish to pub.dev on: push: tags: - - '[0-9]+.[0-9]+.[0-9]+*' # tag pattern on pub.dev: 'v{{version}' + - '[0-9]+\.[0-9]+\.[0-9]+*' # Publish using custom workflow jobs: @@ -17,4 +17,4 @@ jobs: - name: Install dependencies run: dart pub get - name: Publish - run: dart pub publish --force \ No newline at end of file + run: dart pub publish --force