E2E PW Tests: Disable all visual regression tests (#9718) #2534
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy REST API docs | |
on: | |
push: | |
branches: | |
- develop | |
- trunk | |
workflow_dispatch: | |
jobs: | |
build-and-deploy: | |
if: github.repository_owner == 'Automattic' | |
name: Build and deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build | |
run: cd docs/rest-api && ./build.sh | |
- name: Deploy to GitHub Pages | |
if: success() | |
uses: crazy-max/ghaction-github-pages@v4 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
target_branch: gh-pages | |
build_dir: 'docs/rest-api/build' |