diff --git a/.github/workflows/ci_and_deploy.yaml b/.github/workflows/ci_and_deploy.yaml new file mode 100644 index 0000000..64644a2 --- /dev/null +++ b/.github/workflows/ci_and_deploy.yaml @@ -0,0 +1,29 @@ +name: CI and Deploy to GH-Pages + +on: + push: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm run build-storybook + - name: Deploy to GitHub Pages + uses: Cecilapp/GitHub-Pages-deploy@master + env: + EMAIL: ${{ secrets.email }} + GH_TOKEN: ${{ secrets.ACCESS_TOKEN }} + BUILD_DIR: storybook-static