Spaces:
Sleeping
Sleeping
Create main.yml
Browse files- .github/workflows/main.yml +28 -0
.github/workflows/main.yml
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: CI
|
| 2 |
+
|
| 3 |
+
# Controls when the workflow will run
|
| 4 |
+
on:
|
| 5 |
+
# Triggers the workflow on push events but only for the "main" branch
|
| 6 |
+
push:
|
| 7 |
+
branches: [ "main" ]
|
| 8 |
+
|
| 9 |
+
# Allows you to run this workflow manually from the Actions tab
|
| 10 |
+
workflow_dispatch:
|
| 11 |
+
|
| 12 |
+
jobs:
|
| 13 |
+
sync-to-hub:
|
| 14 |
+
runs-on: ubuntu-latest
|
| 15 |
+
steps:
|
| 16 |
+
- uses: actions/checkout@v4
|
| 17 |
+
with:
|
| 18 |
+
fetch-depth: 0
|
| 19 |
+
|
| 20 |
+
- name: Add remote
|
| 21 |
+
env:
|
| 22 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 23 |
+
run: git remote add space https://anyantudre:$HF_TOKEN@huggingface.co/spaces/anyantudre/resemble-enhance-demo
|
| 24 |
+
|
| 25 |
+
- name: Push to hub
|
| 26 |
+
env:
|
| 27 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 28 |
+
run: git push --force https://anyantudre:$HF_TOKEN@huggingface.co/spaces/anyantudre/resemble-enhance-demo main
|