diff --git a/.github/actions/build-docs/action.yml b/.github/actions/build-docs/action.yml new file mode 100644 index 0000000..5a296a3 --- /dev/null +++ b/.github/actions/build-docs/action.yml @@ -0,0 +1,14 @@ +name: Build Docs +description: Build Docs + +runs: + using: "composite" + steps: + - name: Setup Node Environment + uses: ./.github/actions/setup-node + + - name: Build Frontend + shell: bash + run: | + yarn install + yarn docs:build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b715966..8f56ca9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -90,11 +90,8 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Setup Node Environment - uses: ./.github/actions/setup-node - - name: Build Docs - run: yarn docs:build + uses: ./.github/actions/build-docs - name: Deploy to Netlify uses: nwtgck/actions-netlify@v1 diff --git a/.github/workflows/website-preview.yml b/.github/workflows/website-preview.yml index f6fcbff..d6946b3 100644 --- a/.github/workflows/website-preview.yml +++ b/.github/workflows/website-preview.yml @@ -15,11 +15,8 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} - - name: Setup Node Environment - uses: ./.github/actions/setup-node - - name: Build Docs - run: yarn docs:build + uses: ./.github/actions/build-docs - name: Get Deploy Name run: |