From b36f08ac7afe67026e1f5c90a4d268166daa4110 Mon Sep 17 00:00:00 2001 From: Paul Welter Date: Wed, 10 Jan 2024 10:51:49 -0600 Subject: [PATCH] update docs build --- .github/workflows/docs.yml | 33 +++++++++++++++++++++++++++++++++ .github/workflows/dotnet.yml | 5 ++++- .readthedocs.yaml | 10 ---------- mkdocs.yml | 2 +- 4 files changed, 38 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/docs.yml delete mode 100644 .readthedocs.yaml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 00000000..dc615c59 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,33 @@ +name: Documentation + +on: + push: + branches: + - master + - develop + tags: + - 'v*' + paths: + - 'docs/**' + - 'mkdocs.yml' + +permissions: + contents: write + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: 3.x + + - name: Install mkdocs + run: pip install mkdocs-material + + - name: Build + run: mkdocs gh-deploy --force diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index f3631cfb..ba1ebbab 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -15,6 +15,9 @@ on: - develop tags: - 'v*' + paths-ignore: + - 'docs/**' + - 'mkdocs.yml' pull_request: branches: - master @@ -45,7 +48,7 @@ jobs: - name: Install .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: | + dotnet-version: | 6.0.x 8.0.x diff --git a/.readthedocs.yaml b/.readthedocs.yaml deleted file mode 100644 index cf258a8c..00000000 --- a/.readthedocs.yaml +++ /dev/null @@ -1,10 +0,0 @@ -version: 2 - -# Set the version of Python and other tools you might need -build: - os: ubuntu-22.04 - tools: - python: "3.11" - -mkdocs: - configuration: mkdocs.yml diff --git a/mkdocs.yml b/mkdocs.yml index 2f102cd8..657669b6 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,5 +1,5 @@ site_name: Entity Framework Core Generator -theme: readthedocs +theme: material repo_url: https://github.com/loresoft/EntityFrameworkCore.Generator nav: