From e4b873cef680e549b46505f3ac34495441e8af1d Mon Sep 17 00:00:00 2001 From: mate Date: Fri, 14 Nov 2025 22:10:53 -0300 Subject: [PATCH 1/2] feat: created new docs github actions --- .github/workflows/docs_deploy.yaml | 65 ++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 .github/workflows/docs_deploy.yaml diff --git a/.github/workflows/docs_deploy.yaml b/.github/workflows/docs_deploy.yaml new file mode 100644 index 0000000..64062a3 --- /dev/null +++ b/.github/workflows/docs_deploy.yaml @@ -0,0 +1,65 @@ +name: Deploy docs to GitHub Pages + +on: + push: + branches: + - main + - feat/create-new-github-actions-for-docs + paths: + - "docs/**" + - ".github/workflows/deploy-docs-to-pages.yml" + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + cache-dependency-path: docs/package-lock.json + + - name: Install dependencies + working-directory: ./docs + run: npm ci + + - name: Build docs site + working-directory: ./docs + run: npm run build + + - name: Upload Pages artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./docs/dist + + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + + permissions: + pages: write + id-token: write + + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 + From 348ea4c0dbe410ff96ae1d68e366bdf2047df884 Mon Sep 17 00:00:00 2001 From: mate Date: Fri, 14 Nov 2025 22:12:24 -0300 Subject: [PATCH 2/2] trigger: trigged deployment --- .github/workflows/docs_deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs_deploy.yaml b/.github/workflows/docs_deploy.yaml index 64062a3..7d4720c 100644 --- a/.github/workflows/docs_deploy.yaml +++ b/.github/workflows/docs_deploy.yaml @@ -7,7 +7,7 @@ on: - feat/create-new-github-actions-for-docs paths: - "docs/**" - - ".github/workflows/deploy-docs-to-pages.yml" + - ".github/workflows/docs_deploy.yaml" workflow_dispatch: permissions: