From ccc28de984269a4f36d99aa1f7c386c2c39f9819 Mon Sep 17 00:00:00 2001 From: Damiano Lombardi Date: Mon, 26 Aug 2024 07:36:45 +0200 Subject: [PATCH] Deploy documentation on pushes to main --- .github/workflows/documentation.yml | 19 +++++++++++++++++++ .github/workflows/{ci.yml => release.yml} | 12 +----------- 2 files changed, 20 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/documentation.yml rename .github/workflows/{ci.yml => release.yml} (89%) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml new file mode 100644 index 0000000..4a188ae --- /dev/null +++ b/.github/workflows/documentation.yml @@ -0,0 +1,19 @@ +name: Documentation +on: + push: + branches: + - 'main' + paths: + - 'docs/**' + - '.github/workflows/documentation.yml' + +jobs: + mkdocs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: 3.x + - run: pip install mkdocs-material + - run: mkdocs gh-deploy --force diff --git a/.github/workflows/ci.yml b/.github/workflows/release.yml similarity index 89% rename from .github/workflows/ci.yml rename to .github/workflows/release.yml index 768d89d..0f3bbd0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/release.yml @@ -1,19 +1,9 @@ -name: ci +name: Release on: release: types: published jobs: - mkdocs: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - with: - python-version: 3.x - - run: pip install mkdocs-material - - run: mkdocs gh-deploy --force - deploy: runs-on: ubuntu-latest