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": {