Skip to content

Commit

Permalink
Create deploy-hf.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
3377 authored Sep 11, 2024
1 parent 6d48491 commit fb7de26
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/deploy-hf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Deploy to Hugging Face Spaces
on:
push:
branches:
- main
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

0 comments on commit fb7de26

Please sign in to comment.