diff options
| author | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-10-09 22:37:03 +0200 |
|---|---|---|
| committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-10-09 23:07:21 +0200 |
| commit | 2ab5620769f0f364c410d3da94494c123275a3a1 (patch) | |
| tree | f6baa2a19034273e6d56d08717291f459138667d /.github/workflows/website.yml | |
| parent | d7ea066c5cd04c68c9ed2c3f1b7cd981d9b5f6ac (diff) | |
| download | meson-2ab5620769f0f364c410d3da94494c123275a3a1.tar.gz | |
docs: GitHub Action up the JSON docs
Diffstat (limited to '.github/workflows/website.yml')
| -rw-r--r-- | .github/workflows/website.yml | 12 |
1 files changed, 12 insertions, 0 deletions
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' }} + |
