Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

deploy-launcher.yml 1.1 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
  1. name: 'Deploy local.promptfoo.app'
  2. on:
  3. push:
  4. branches: ['main']
  5. paths:
  6. - 'src/app/**' # Only trigger on changes to frontend code
  7. jobs:
  8. deploy:
  9. name: Deploy to Cloudflare Pages
  10. timeout-minutes: 5
  11. runs-on: ubuntu-latest
  12. permissions:
  13. contents: read
  14. deployments: write
  15. env:
  16. VITE_PROMPTFOO_LAUNCHER: true
  17. CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
  18. CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
  19. steps:
  20. - name: Checkout repo
  21. uses: actions/checkout@v4
  22. - name: Use Node
  23. uses: actions/setup-node@v4
  24. with:
  25. node-version-file: '.nvmrc'
  26. cache: 'npm'
  27. - name: Install Dependencies
  28. run: npm ci
  29. - name: Build
  30. run: npm run build:app
  31. - name: Deploy to Cloudflare
  32. uses: cloudflare/wrangler-action@v3
  33. with:
  34. apiToken: ${{ env.CLOUDFLARE_API_TOKEN }}
  35. accountId: ${{ env.CLOUDFLARE_ACCOUNT_ID }}
  36. command: pages deploy dist/src/app/ --project-name=promptfoo-launcher
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...