From c2074eb6aad504a8cd026a982607905e8232b646 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Thu, 9 May 2024 22:01:30 +0200 Subject: [PATCH] Test doc generation --- .github/workflows/documentation.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index a7c872633..edbf640d1 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -27,13 +27,14 @@ jobs: fetch-depth: 0 - name: Build run: | + echo ${{github.ref}} meson setup builddir -Dauto_features=enabled \ -Dclapper-app=disabled -Dvapi=disabled -Ddoc=true \ -Dglimporter=auto -Dgluploader=auto -Drawimporter=auto cd builddir meson compile - name: Commit files - if: success() && github.ref == 'refs/heads/master' + if: ${{ success() && github.ref == 'refs/pull/*/merge' }} run: | git checkout gh-pages rm -rf doc/clapper/* @@ -48,7 +49,7 @@ jobs: git commit -m "doc: Update" - name: Push changes uses: ad-m/github-push-action@master - if: success() && github.ref == 'refs/heads/master' + if: ${{ success() && github.ref == 'refs/pull/*/merge' }} with: github_token: ${{ secrets.GITHUB_TOKEN }} branch: gh-pages