github-actions[bot]
Automated CT: Update daily prices and retrain model [skip ci]
2ce4c09
Raw
History Blame Contribute Delete
775 Bytes
name: Continuous Deployment (CD)
on:
push:
branches: [ "main" ]
jobs:
deploy:
name: Deploy to Production VM
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- name: Push to Hugging Face
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
rm -rf .git
git init
git checkout -b main
git lfs install
git add .
git config user.email "actions@github.com"
git config user.name "GitHub Actions"
git commit -m "Deploy to HF Spaces"
git remote add space https://dwssp:$HF_TOKEN@huggingface.co/spaces/dwssp/cbsl-commodity-forecast
git push -f space main