From 2ab5620769f0f364c410d3da94494c123275a3a1 Mon Sep 17 00:00:00 2001 From: Daniel Mensinger Date: Sat, 9 Oct 2021 22:37:03 +0200 Subject: docs: GitHub Action up the JSON docs --- .github/workflows/website.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to '.github') diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 8e79d0851..d707cb58f 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -12,6 +12,9 @@ on: paths: - docs/** workflow_dispatch: + release: + types: + - published # This job is copy/paster into wrapdb CI, please update it there when doing any # change here. @@ -40,6 +43,7 @@ jobs: cd docs ../meson.py setup _build ninja -C _build + ninja -C _build test - name: Update website env: SSH_AUTH_SOCK: /tmp/ssh_agent.sock @@ -47,3 +51,11 @@ jobs: cd docs ninja -C _build upload if: env.HAS_SSH_KEY == 'true' + - name: Release the current JSON docs + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: docs/_build/reference_manual.json + tag: ${{ github.ref }} + if: ${{ github.event_name == 'release' }} + -- cgit v1.2.3 From 0eec5480fb2cff1549f7f593a8da29ee7deed01b Mon Sep 17 00:00:00 2001 From: Daniel Mensinger Date: Sat, 9 Oct 2021 23:32:46 +0200 Subject: docs: Also check on pull-requests --- .github/workflows/website.yml | 3 +++ 1 file changed, 3 insertions(+) (limited to '.github') diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index d707cb58f..5da6ef557 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -11,6 +11,9 @@ on: - master paths: - docs/** + pull_request: + paths: + - docs/** workflow_dispatch: release: types: -- cgit v1.2.3