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-release.yml 1.2 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
41
42
43
  1. name: Deploy to production
  2. on:
  3. release:
  4. types: [released]
  5. # to run this workflow manually from the Actions tab
  6. workflow_dispatch:
  7. jobs:
  8. update-env:
  9. runs-on: ubuntu-latest
  10. timeout-minutes: 10
  11. steps:
  12. - uses: actions/checkout@v3
  13. - uses: actions/setup-node@v3
  14. with:
  15. node-version: "18"
  16. cache: "npm"
  17. - run: npm install ci
  18. - name: "Update DOTENV_LOCAL in prod"
  19. env:
  20. HF_TOKEN: ${{ secrets.HF_TOKEN }}
  21. SERPER_API_KEY: ${{ secrets.SERPER_API_KEY }}
  22. OPENID_CONFIG: ${{ secrets.OPENID_CONFIG }}
  23. MONGODB_URL: ${{ secrets.MONGODB_URL }}
  24. HF_ACCESS_TOKEN: ${{ secrets.HF_ACCESS_TOKEN }}
  25. run: npm run updateProdEnv
  26. sync-to-hub:
  27. runs-on: ubuntu-latest
  28. steps:
  29. - name: Check large files
  30. uses: ActionsDesk/lfs-warning@v2.0
  31. with:
  32. filesizelimit: 10485760 # this is 10MB so we can sync to HF Spaces
  33. - uses: actions/checkout@v3
  34. with:
  35. fetch-depth: 0
  36. lfs: true
  37. - name: Push to hub
  38. env:
  39. HF_TOKEN: ${{ secrets.HF_TOKEN }}
  40. run: git push https://nsarrazin:$HF_TOKEN@huggingface.co/spaces/huggingchat/chat-ui main
Tip!

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

Comments

Loading...