From 60e2223f1ceda420c5b3aff4521c2fc88e79a699 Mon Sep 17 00:00:00 2001 From: Sergey Chuvashev Date: Fri, 5 Jul 2024 15:38:36 +0400 Subject: [PATCH] Updated github workflow for auto publishing to pub.dev --- .github/workflows/publish.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9117fe4..469bfb1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,7 +6,14 @@ on: - '[0-9]+.[0-9]+.[0-9]+*' jobs: - publish: - permissions: - id-token: write # Required for authentication using OIDC - uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 \ No newline at end of file + publishing: + runs-on: ubuntu-latest + steps: + - name: 'Checkout' + uses: actions/checkout@main # required! + + - name: 'Publish' + uses: k-paxian/dart-package-publisher@master + with: + accessToken: ${{ secrets.OAUTH_ACCESS_TOKEN }} + refreshToken: ${{ secrets.OAUTH_REFRESH_TOKEN }} \ No newline at end of file