From bb6da515384860df71e4ebf3a2e8ec92607498e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Ga=C5=82ek?= Date: Mon, 19 Feb 2024 14:04:37 +0100 Subject: [PATCH] Update and rename deploy.yml to docs.yml --- .github/workflows/deploy.yml | 32 ----------------------------- .github/workflows/docs.yml | 39 ++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 32 deletions(-) delete mode 100644 .github/workflows/deploy.yml create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 479fe07..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Deploy docs - -on: - workflow_dispatch: - push: - branches: main - paths: - - 'docs/**' - - 'mkdocs.yml' - - 'Pipfile' - -jobs: - build: - runs-on: [self-hosted, linux] - steps: - - - uses: actions/checkout@v4 - - - uses: actions/setup-python@v4 - with: - python-version: '3.10' - - - run: python -m pip install build - - - name: Install poetry - run: make install-poetry - - - name: Install dependencies - run: make install-env - - - name: Build and Deploy docs - run: make deploy-docs \ No newline at end of file diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..017a65e --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,39 @@ +name: Deploy docs +on: + push: + branches: ["main"] + paths: + - 'docs/**' + - 'mkdocs.yml' + - 'Pipfile' + workflow_dispatch: +permissions: + contents: read + pages: write + id-token: write +concurrency: + group: "pages" + cancel-in-progress: false +jobs: + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/configure-pages@v4 + - uses: actions/setup-python@v4 + with: + python-version: '3.10' + - run: python -m pip install build + - run: make install-poetry + - run: make install-env + - run: poetry run mkdocs build + - uses: actions/upload-pages-artifact@v3 + with: + path: 'site' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 +