diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bfaac98..1b73bcc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,6 +47,7 @@ jobs: - name: Update docs run: | git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git + yarn doc yarn gh-pages -d docs -u "github-actions-bot " env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 9e652ca..156475c 100644 --- a/.gitignore +++ b/.gitignore @@ -47,7 +47,7 @@ coverage/ *keypair.json # Docs -**/docs +docs # Bundle stats file stats.html @@ -58,4 +58,4 @@ stats.html !.yarn/plugins !.yarn/releases !.yarn/sdks -!.yarn/versions \ No newline at end of file +!.yarn/versions diff --git a/docs/.gitkeep b/docs/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/package.json b/package.json index 26251eb..9b05b86 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ }, "scripts": { "doc": "typedoc", - "doc:update": "yarn doc && ./sh/update-docs", + "doc:update": "yarn doc && ./sh/publish-docs", "build": "rimraf lib && rollup -c", "dev": "rollup -c --watch", "lint": "eslint \"{src,test}/**/*.ts\" --format stylish", diff --git a/sh/update-docs b/sh/publish-docs similarity index 100% rename from sh/update-docs rename to sh/publish-docs