From d4a8aa6cae4a4493c1c439be37e87895a60840c5 Mon Sep 17 00:00:00 2001 From: susatthi Date: Sun, 15 Oct 2023 10:46:34 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore:=20use=20k-paxian/dart-pac?= =?UTF-8?q?kage-publisher?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #38 --- .github/workflows/publish.yaml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index ead6ec8..f41c5e5 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -19,21 +19,11 @@ jobs: uses: dart-lang/setup-dart@v1 with: sdk: stable - - name: Setup credentials - run: | - mkdir -p ~/.pub-cache - cat < ~/.pub-cache/credentials.json - { - "accessToken":"${{ secrets.PUB_CREDENTIALS_ACCESS_TOKEN }}", - "refreshToken":"${{ secrets.PUB_CREDENTIALS_REFRESH_TOKEN }}", - "idToken":"${{ secrets.PUB_CREDENTIALS_ID_TOKEN }}", - "tokenEndpoint":"https://accounts.google.com/o/oauth2/token", - "scopes": ["openid","https://www.googleapis.com/auth/userinfo.email"], - "expiration": 1651458128502 - } - EOF - name: Publish to pub.dev - run: dart pub publish -f + uses: k-paxian/dart-package-publisher@master + with: + accessToken: ${{ secrets.PUB_CREDENTIALS_ACCESS_TOKEN }} + refreshToken: ${{ secrets.PUB_CREDENTIALS_REFRESH_TOKEN }} - name: Create release uses: actions/create-release@v1 env: