From 3a049d0959782e3cc7769407d5277ea2b5151b02 Mon Sep 17 00:00:00 2001 From: CloudWebRTC Date: Wed, 17 May 2023 14:13:34 +0800 Subject: [PATCH] Update publish.yaml --- .github/workflows/publish.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 311ed89..b28f0f0 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -25,15 +25,7 @@ jobs: run: flutter test #- name: Check Publish Warnings # run: dart pub publish --dry-run - - name: Publish - uses: k-paxian/dart-package-publisher@v1.5.1 - with: - credentialJson: ${{ secrets.CREDENTIAL_JSON }} - flutter: true - skipTests: true - force: true - - - run: flutter pub get + - run: flutter pub global activate dartdoc # Generate docs @@ -46,3 +38,11 @@ jobs: AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_DEPLOY_AWS_ACCESS_KEY }} AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_DEPLOY_AWS_API_SECRET }} AWS_DEFAULT_REGION: "us-east-1" + + - name: Publish + uses: k-paxian/dart-package-publisher@v1.5.1 + with: + credentialJson: ${{ secrets.CREDENTIAL_JSON }} + flutter: true + skipTests: true + force: true