From dc20a5ec9df2084e5574cde92d1f2166b693692e Mon Sep 17 00:00:00 2001 From: "Mr.Dr.Professor Patrick" Date: Wed, 17 Jan 2024 10:53:51 +0100 Subject: [PATCH] fix: fix docs CI (#382) chore: fix docs CI --- .github/workflows/docs-deploy.yml | 10 ++++------ package.json | 1 + 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml index dfdc2bf5..867f00c6 100644 --- a/.github/workflows/docs-deploy.yml +++ b/.github/workflows/docs-deploy.yml @@ -21,9 +21,7 @@ jobs: - name: Build run: npm run docs:build - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./build - user_name: 'github-actions[bot]' - user_email: 'github-actions[bot]@users.noreply.github.com' \ No newline at end of file + if: ${{ github.ref == 'refs/heads/main' }} + run: npm run docs:deploy + + \ No newline at end of file diff --git a/package.json b/package.json index a9758587..fb290b76 100644 --- a/package.json +++ b/package.json @@ -125,6 +125,7 @@ "docs:start:ru": "cd ./documentation && npm run start:ru", "docs:build": "cd ./documentation && npm run build", "docs:serve": "cd ./documentation && npm run serve", + "docs:deploy": "cd ./documentation && npm run deploy", "prepublishOnly": "npm run build" }, "husky": {