Hasan Iqbal
Added manual release to hf option
cc277a6 unverified
raw
history blame
1.08 kB
name: Release Manual
on:
workflow_dispatch:
jobs:
huggingface_deploy:
name: Deploy to Hugging Face
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Setup Git Config
run: |
git checkout main
git config --global user.email "[email protected]"
git config --global user.name "Hasan Iqbal"
- name: Enable HuggingFace Spaces Config
run: |
READMEFILE="README.md"
sed -i 's/<!--/---/g; s/-->/---/g' $READMEFILE
git add $READMEFILE
git commit -m "Uncommented HuggingFace Spaces Configuration" || echo "No changes to commit"
- name: Wait for 10 seconds
run: sleep 10
- name: Push to Hugging Face
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: git push https://hasaniqbal777:[email protected]/spaces/hasaniqbal777/OpenFactCheck main --force