diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml new file mode 100644 index 000000000000..c1f37b3847ca --- /dev/null +++ b/.github/workflows/preview.yml @@ -0,0 +1,21 @@ +name: Preview build +on: + - pull_request +jobs: + preview-build: + name: Preview build + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + fetch-depth: 0 # enable git diff and building many branches + + - name: Build the docs + run: | + chmod +x scripts/prow-smoke-test.sh + # validate + scripts/prow-smoke-test.sh -v + # deploy + scripts/prow-smoke-test.sh -p