fix: Correct pg_sslmode default from verify-full to prefer #4474
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_publish | |
| on: | |
| push: | |
| branches: | |
| - trunk | |
| tags: | |
| - v* | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| deployments: write | |
| pull-requests: write | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| name: Deploy | |
| permissions: | |
| contents: write | |
| deployments: write | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| - name: Install dependencies | |
| working-directory: website | |
| run: npm install | |
| - name: Build website | |
| working-directory: website | |
| run: npm run build | |
| - name: Can Deploy? | |
| id: can_deploy | |
| run: | | |
| if [[ "${{ secrets.CLOUDFLARE_API_TOKEN }}" == "" || "${{ secrets.CLOUDFLARE_ACCOUNT_ID }}" == "" ]]; then | |
| echo "CLOUDFLARE_API_TOKEN or CLOUDFLARE_ACCOUNT_ID is not set. Skipping deployment." | |
| echo "can_deploy=false" >> $GITHUB_OUTPUT | |
| else | |
| echo "can_deploy=true" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Deploy | |
| id: deploy | |
| if: ${{ steps.can_deploy.outputs.can_deploy == 'true' }} | |
| uses: cloudflare/[email protected] | |
| with: | |
| workingDirectory: website | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| command: pages deploy build --project-name=spiceai-org-website --branch ${{ github.ref_name }} | |
| gitHubToken: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Add deploy comment to PR | |
| if: ${{ github.event_name == 'pull_request' && steps.can_deploy.outputs.can_deploy == 'true' }} | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| github.rest.issues.createComment({ | |
| issue_number: context.issue.number, | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| body: '🚀 deployed to <${{ steps.deploy.outputs.deployment-url }}>' | |
| }) | |
| - name: Trigger search reindex after deployment | |
| if: ${{ github.ref == 'refs/heads/trunk' }} | |
| run: | | |
| curl -X POST "https://crawler.algolia.com/api/1/crawlers/${{ secrets.ALGOLIA_CRAWLER_ID }}/reindex" \ | |
| --user "${{ secrets.ALGOLIA_USER_ID }}":"${{ secrets.ALGOLIA_TOKEN }}" |