From 0dd9e271ff3eef9b25ff76e95d777608f3dfc0c9 Mon Sep 17 00:00:00 2001 From: Michael Salaverry Date: Thu, 2 Apr 2020 18:18:42 +0300 Subject: [PATCH 1/2] Create ci_and_deploy.yaml --- .github/workflows/ci_and_deploy.yaml | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/ci_and_deploy.yaml diff --git a/.github/workflows/ci_and_deploy.yaml b/.github/workflows/ci_and_deploy.yaml new file mode 100644 index 0000000..82288b0 --- /dev/null +++ b/.github/workflows/ci_and_deploy.yaml @@ -0,0 +1,31 @@ +name: CI and Deploy to GH-Pages + +on: + push: + branches: [ master ] + pull_request: + 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 From 45a37d128b1743fe2b1c895a6a41dd79a4927e44 Mon Sep 17 00:00:00 2001 From: Michael Salaverry Date: Thu, 2 Apr 2020 18:27:44 +0300 Subject: [PATCH 2/2] removed on pull request to master --- .github/workflows/ci_and_deploy.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci_and_deploy.yaml b/.github/workflows/ci_and_deploy.yaml index 82288b0..64644a2 100644 --- a/.github/workflows/ci_and_deploy.yaml +++ b/.github/workflows/ci_and_deploy.yaml @@ -3,8 +3,6 @@ name: CI and Deploy to GH-Pages on: push: branches: [ master ] - pull_request: - branches: [ master ] jobs: build: