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: