Skip to content

Update deploy-hf.yml #2

Update deploy-hf.yml

Update deploy-hf.yml #2

Workflow file for this run

name: Deploy to Hugging Face Spaces
on:

Check failure on line 2 in .github/workflows/deploy-hf.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy-hf.yml

Invalid workflow file

You have an error in your yaml syntax on line 2
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to Hugging Face Docker registry
uses: docker/login-action@v2
with:
registry: "https://huggingface.co"
username: "${{ secrets.HF_USERNAME }}"
password: "${{ secrets.HF_TOKEN }}"
- name: Build and Push Docker image
run: |
docker build -t huggingface.co/YOUR_USERNAME/rss2tg .
docker push huggingface.co/YOUR_USERNAME/rss2tg