From 1416c8f76f1f376b2448225d178565cef7618f50 Mon Sep 17 00:00:00 2001 From: felipprodrigues Date: Tue, 10 Oct 2023 14:42:25 -0300 Subject: [PATCH] ci: add docs workflow --- .github/workflows/deploy.docs.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/deploy.docs.yml diff --git a/.github/workflows/deploy.docs.yml b/.github/workflows/deploy.docs.yml new file mode 100644 index 0000000..3d9cb16 --- /dev/null +++ b/.github/workflows/deploy.docs.yml @@ -0,0 +1,28 @@ +name: Deploy Docs + +on: + push: + branches: + - master + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 16 + + - run: npm ci + + - run: npm run build + + - name: Deploy storybook + working-directory: ./packages/docs + run: npm run deploy-storybook -- --ci --existing-output-dir=storybook-static + env: + GH_TOKEN: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}