From 4c101882d13dad890dace1b8ff80a562d8c2ef10 Mon Sep 17 00:00:00 2001 From: yosuke ota Date: Fri, 13 Nov 2020 18:42:40 +0900 Subject: [PATCH] Update CI --- .github/workflows/GHPages.yml | 23 +++++++++++++++++++++++ package.json | 3 --- 2 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/GHPages.yml diff --git a/.github/workflows/GHPages.yml b/.github/workflows/GHPages.yml new file mode 100644 index 00000000..1d00135f --- /dev/null +++ b/.github/workflows/GHPages.yml @@ -0,0 +1,23 @@ +name: GHPages + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + deploy-docs: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + - name: Install Packages + run: npm install + - name: Build docs + run: npm run docs:build + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./docs/.vuepress/dist \ No newline at end of file diff --git a/package.json b/package.json index c9ebe091..d6ce94cf 100644 --- a/package.json +++ b/package.json @@ -23,9 +23,6 @@ "predocs:watch": "npm run build:ts", "docs:watch": "vuepress dev --debug docs", "docs:build": "npm run build:ts && vuepress build docs --no-cache", - "docs-deploysetup": "npm run docs:build && npm run docs-deploysetup:clean && npm run docs-deploysetup:copy", - "docs-deploysetup:clean": "rimraf docs/assets", - "docs-deploysetup:copy": "npx cpx \"docs/\\.vuepress/dist/**\" \"docs\" -u", "preversion": "npm test && npm run update && git add .", "version": "npm run eslint-fix && git add .", "update-fixtures": "ts-node ./tools/update-fixtures.ts && npm run eslint-fix"