diff --git a/.github/workflows/workflows.yaml b/.github/workflows/workflows.yaml index 9b39cf1..e78e846 100644 --- a/.github/workflows/workflows.yaml +++ b/.github/workflows/workflows.yaml @@ -82,4 +82,22 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - + deploy: + name: Deploy + runs-on: ubuntu-latest + if: ${{ github.ref == 'refs/heads/master' }} + needs: build + steps: + - uses: actions/checkout@v2 + with: + ref: ${{ github.ref }} + - name: Setup Node + uses: actions/setup-node@v1 + - name: Install dependencies + run: npm ci + - name: Run Build + run: npm run build + - name: Deploy Storybook + run: npm run deploy-storybook-ci + end: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}