From bbc11d71b911a14ffc92915e92812a3777fdf25f Mon Sep 17 00:00:00 2001 From: Vladimir Leonidovich <176372746+vladimirleonidovich@users.noreply.github.com> Date: Thu, 13 Nov 2025 08:31:10 +0000 Subject: [PATCH] ci: create pages workflow --- .github/workflows/pages.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/pages.yml diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000000..d518389026 --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,34 @@ +name: GitHub Pages +on: + push: + branches: ["master"] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - uses: actions/setup-node@v4 + with: + cache: 'npm' + - name: Setup GitHub Pages + id: pages + uses: actions/configure-pages@v5 + - run: npm clean-install + - run: npm run build:prod -- --base-href /docs.nestjs.com/ + - run: mv dist _site + - name: Upload artifact + uses: actions/upload-pages-artifact@v4 + deploy: + permissions: + contents: read + pages: write + id-token: write + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy + id: deployment + uses: actions/deploy-pages@v4 + environment: + name: github-pages + url: ${{steps.deployment.outputs.page_url}}