From 085c9be89ad05e1411e9c2a3090c7741c59ab357 Mon Sep 17 00:00:00 2001 From: git-elliot Date: Sun, 17 Nov 2024 10:40:07 +0530 Subject: [PATCH 1/2] add publish step --- .github/workflows/publish.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d49c8aa..b7463d5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,7 +5,7 @@ on: types: [published] jobs: - publish: + test: runs-on: ubuntu-latest permissions: id-token: write # Required for authentication using OIDC @@ -61,4 +61,13 @@ jobs: with: token: ${{secrets.CODECOV_TOKEN}} file: coverage/coverage.lcov + + publish: + runs-on: ubuntu-latest + needs: 'test' + permissions: + id-token: write # Required for authentication using OIDC + uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 + with: + environment: 'pub.dev' \ No newline at end of file From e90fc6c47e53554b5ca76b0d3ec028f68676f4ed Mon Sep 17 00:00:00 2001 From: git-elliot Date: Sun, 17 Nov 2024 10:41:38 +0530 Subject: [PATCH 2/2] Publish workflow fix --- .github/workflows/publish.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b7463d5..22c8daf 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -50,11 +50,6 @@ jobs: - name: Check Publish Warnings run: dart pub publish --dry-run - - - name: Publish Package - uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 - with: - environment: 'pub.dev' - name: Upload Coverage to CodeCov uses: codecov/codecov-action@v3