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-staging.yml 686 B

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
  1. name: Deploy to staging environment
  2. on:
  3. push:
  4. branches: [main]
  5. # to run this workflow manually from the Actions tab
  6. workflow_dispatch:
  7. jobs:
  8. sync-to-hub:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - name: Check large files
  12. uses: ActionsDesk/lfs-warning@v2.0
  13. with:
  14. filesizelimit: 10485760 # this is 10MB so we can sync to HF Spaces
  15. - uses: actions/checkout@v3
  16. with:
  17. fetch-depth: 0
  18. lfs: true
  19. - name: Push to hub
  20. env:
  21. HF_DEPLOYMENT_TOKEN: ${{ secrets.HF_DEPLOYMENT_TOKEN }}
  22. run: git push https://nsarrazin:$HF_DEPLOYMENT_TOKEN@huggingface.co/spaces/huggingchat/chat-ui-staging main
Tip!

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

Comments

Loading...