From 5082a62550be45dabfe2b123ba4e519bd610d310 Mon Sep 17 00:00:00 2001 From: TNA-Allan Date: Fri, 8 Nov 2024 12:24:37 +0000 Subject: [PATCH] FIND-81:added deploy docs --- .github/workflows/deploy-docs.yml | 48 +++++++++++++++++++++++++++++++ 1 file changed, 48 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..f1eacfb --- /dev/null +++ b/.github/workflows/deploy-docs.yml @@ -0,0 +1,48 @@ +name: Deploy + +on: + push: + branches: + - main + +permissions: + contents: read + actions: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + build-and-deploy: + name: Build and deploy + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: 3.12 + - name: Install dependencies + run: pip install -r requirements.txt + - name: Check links + run: | + pip install linkcheckmd + python -m linkcheckmd docs -v + - name: Build + run: mkdocs build + - name: Setup Pages + uses: actions/configure-pages@v4 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: site + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 \ No newline at end of file