From f1e334965e82b1cee069569ba245553b1963a5f9 Mon Sep 17 00:00:00 2001 From: Vadim Peretokin Date: Wed, 12 Mar 2025 14:51:20 +0100 Subject: [PATCH 1/2] Reinstate cds-hooks.org publication --- .github/workflows/publish-docs.yml | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/publish-docs.yml diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml new file mode 100644 index 00000000..25a63d87 --- /dev/null +++ b/.github/workflows/publish-docs.yml @@ -0,0 +1,35 @@ +name: Publish docs + +on: + push: + branches: [ master ] + pull_request: + types: [opened, synchronize] # This will trigger the workflow only when a PR is opened or updated with new commits + +jobs: + build: + + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python 3.6 + uses: actions/setup-python@v2 + with: + python-version: 3.6 + + - name: Setup dependencies + run: pip install -r requirements.txt + + - name: Generate docs + run: mkdocs build --verbose --clean --strict + + - name: Deploy + if: github.event_name == 'push' && github.ref == 'refs/heads/master' + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./site + cname: cds-hooks.org + From 1aed8d2f8e351f6342513faf697fdf58d4610410 Mon Sep 17 00:00:00 2001 From: Vadim Peretokin Date: Wed, 12 Mar 2025 14:51:59 +0100 Subject: [PATCH 2/2] Allow manual triggering --- .github/workflows/publish-docs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 25a63d87..df98dae2 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -5,6 +5,7 @@ on: branches: [ master ] pull_request: types: [opened, synchronize] # This will trigger the workflow only when a PR is opened or updated with new commits + workflow_dispatch: jobs: build: