From 2822b22401cd122b20da023732a0e025d51dba8b Mon Sep 17 00:00:00 2001 From: Dusan Borovcanin Date: Thu, 25 Jan 2024 18:07:19 +0100 Subject: [PATCH] Revert Actions Signed-off-by: Dusan Borovcanin --- .github/workflows/pages.yml | 27 +++++++++++++++++++++++++++ README.md | 3 +++ 2 files changed, 30 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 00000000..051ca7ed --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,27 @@ +name: Publish docs via GitHub Pages + +# Controls when the action will run +on: + push: + branches: + - main + - pages + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + build: + name: Deploy docs + runs-on: ubuntu-latest + steps: + - name: Checkout master + uses: actions/checkout@v2 + + - name: Deploy docs + uses: mhausenblas/mkdocs-deploy-gh-pages@master + # Or use mhausenblas/mkdocs-deploy-gh-pages@nomaterial to build without the mkdocs-material theme + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CUSTOM_DOMAIN: docs.magistrala.abstractmachines.fr \ No newline at end of file diff --git a/README.md b/README.md index 70fde9f4..70c2605d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ # Magistrala [![license][license]](LICENSE) +[build][build] +[![Build](https://github.com/absmach/magistrala-docs/actions/workflows/pages.yaml/badge.svg?branch=main)](https://github.com/absmach/magistrala-docs/actions/workflows/pages.yaml) + This repo collects the collaborative work on Magistrala documentation. The official documentation is hosted at [Magistrala Docs page][docs].