Add --force-push flag in rill deploy to force push changes for rill managed repos
#4120
Workflow file for this run
This file contains hidden or 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: Build and Test docs | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - ".github/workflows/docs-check.yml" | |
| - "cli/**" | |
| - "docs/**" | |
| - "runtime/parser/schema/**" | |
| env: | |
| NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
| NETLIFY_SITE_ID: 23baf08e-2d3e-44db-8bd4-938e54467a29 | |
| jobs: | |
| check: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: 1.25 | |
| - name: Generate docs | |
| run: make docs.generate | |
| - name: Check for uncommitted changes | |
| run: | | |
| git diff --exit-code || (echo "Generated docs are out of date. Please run 'make docs.generate' locally and commit the changes." && exit 1) | |
| test -z "$(git status --porcelain)" || (echo "Generated docs are out of date. Please run 'make docs.generate' locally and commit the changes." && git status --porcelain && exit 1) | |
| build: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up NodeJS | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'npm' | |
| - name: Build docs | |
| run: |- | |
| npm ci -w docs | |
| npm run build -w docs | |
| - name: Deploy Docs to Netlify docs.rilldata.com | |
| uses: nwtgck/actions-netlify@v3.0 | |
| if: github.event_name != 'pull_request' | |
| with: | |
| publish-dir: ./docs/dist | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| deploy-message: "Docs ${{ github.ref_name }} deployed to docs.rilldata.com" | |
| production-deploy: true | |
| enable-pull-request-comment: false | |
| enable-commit-comment: true | |
| overwrites-pull-request-comment: true | |
| timeout-minutes: 1 | |
| - name: Algolia crawler creation and crawl | |
| uses: algolia/algoliasearch-crawler-github-actions@v1.1.10 | |
| id: algolia_crawler | |
| if: github.event_name != 'pull_request' | |
| with: | |
| crawler-name: rilldata | |
| crawler-user-id: ${{ secrets.CRAWLER_USER_ID }} | |
| crawler-api-key: ${{ secrets.CRAWLER_API_KEY }} | |
| algolia-app-id: ${{ secrets.ALGOLIA_APP_ID }} | |
| algolia-api-key: ${{ secrets.ALGOLIA_API_KEY }} | |
| site-url: 'https://docs.rilldata.com' |