Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
devvirani13 authored Sep 11, 2024
1 parent 046bd6c commit 1b5499d
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
name: Sync to Hugging Face hub
name: Sync to Hugging Face

on:
push:
branches: [main]

workflow_dispatch:

jobs:
sync-to-hub:
sync-to-hub:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Push to hub

- name: Push to Hugging Face
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
run: git push --force https://itsdvirani:[email protected]/spaces/itsdvirani/InterActiveStoryTeller main
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git push --force https://itsdvirani:[email protected]/spaces/itsdvirani/InterActiveStoryTeller main

0 comments on commit 1b5499d

Please sign in to comment.