From 375a6e7002cbcde27e6fbc0c0cca1b92202a4aa3 Mon Sep 17 00:00:00 2001 From: Nacho Vazquez Date: Sun, 14 Jul 2024 10:19:52 -0300 Subject: [PATCH] ci: create workflow to release docs independently if needed --- .github/workflows/release-docs.yml | 41 ++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/release-docs.yml diff --git a/.github/workflows/release-docs.yml b/.github/workflows/release-docs.yml new file mode 100644 index 00000000..3e47eb61 --- /dev/null +++ b/.github/workflows/release-docs.yml @@ -0,0 +1,41 @@ +name: Release NPM packages + +env: + NODE_OPTIONS: --max-old-space-size=6144 + NX_MAX_PARALLEL: 2 + +on: + workflow_dispatch: + +jobs: + deploy-docs: + name: '[Merge] Deploy docs to GitHub Pages' + needs: release + runs-on: ubuntu-latest + permissions: + contents: read + actions: read + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Check out the source code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Setup + uses: ./.github/actions/setup + # Uses the cache generated in the distributed step + - name: Build docs + run: pnpm exec nx build docs-lumberjack-docs-app + - name: Set up GitHub Pages + uses: actions/configure-pages@v4 + - name: Upload docs to GitHub Pages + uses: actions/upload-pages-artifact@v3 + with: + path: dist/packages/docs/lumberjack-docs-app/ + - name: Deploy docs to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4