diff --git a/.github/workflows/ghpages.yml b/.github/workflows/ghpages.yml new file mode 100644 index 0000000..eb3954b --- /dev/null +++ b/.github/workflows/ghpages.yml @@ -0,0 +1,25 @@ +name: Build and Deploy +on: + push: + branches: + - master +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + persist-credentials: false + + - name: Install and Build + run: | + npm install + npm run build-storybook + + - name: Deploy + uses: JamesIves/github-pages-deploy-action@releases/v3 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BRANCH: gh-pages + FOLDER: .storybook diff --git a/package.json b/package.json index 39b27bf..1fc8fa9 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,7 @@ "lint": "eslint --fix --ext .js,.vue src stories", "test": "jest", "storybook": "start-storybook -p 6006", - "build-storybook": "build-storybook", - "deploy-storybook": "storybook-to-ghpages" + "build-storybook": "build-storybook" }, "husky": { "hooks": { @@ -58,7 +57,6 @@ "@storybook/addon-options": "^5.2.8", "@storybook/addon-storysource": "^5.2.8", "@storybook/addons": "^5.2.8", - "@storybook/storybook-deployer": "^2.8.6", "@storybook/vue": "^5.2.8", "@vue/eslint-config-standard": "^5.0.1", "@vue/test-utils": "^1.0.2",