diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 10181ac6..df1e47ba 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -1,9 +1,15 @@ name: 🚧 Website MkDocs on: + pull_request: + branches: + - master + paths: + - 'website/**' + - '.github/workflows/website.yml' push: branches: - master - # - website* + - website* paths: - 'website/**' - '.github/workflows/website.yml' @@ -77,7 +83,15 @@ jobs: unzip -q signalo-${LATEST_RELEASE}-model-documentation.zip cp -r model-documentation site/ + - uses: actions/upload-artifact@v4 + if: ${{ github.event_name == 'pull_request' }} + with: + name: website + path: website/site + if-no-files-found: error + - name: Deploy to GitHub Pages + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} uses: JamesIves/github-pages-deploy-action@v4.5.0 with: branch: gh-pages