phenixrhyder
commited on
Create main.yml
Browse files- .github/workflows/main.yml +34 -0
.github/workflows/main.yml
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Phenix Rhyder/ Checkerboard Frame Generator
|
2 |
+
name: Deploy Python App to Hugging Face Spaces
|
3 |
+
|
4 |
+
# This action will trigger on every push to the 'main' branch
|
5 |
+
on:
|
6 |
+
push:
|
7 |
+
branches:
|
8 |
+
- main
|
9 |
+
|
10 |
+
# A workflow run is made up of one or more jobs
|
11 |
+
jobs:
|
12 |
+
# This job syncs your repository content to a Hugging Face Space
|
13 |
+
deploy-to-hub:
|
14 |
+
# Use the latest version of Ubuntu as the operating system
|
15 |
+
runs-on: ubuntu-latest
|
16 |
+
steps:
|
17 |
+
# Step 1: Check out the repository's code so the workflow can access it.
|
18 |
+
- name: Checkout repository
|
19 |
+
uses: actions/checkout@v4
|
20 |
+
with:
|
21 |
+
fetch-depth: 0
|
22 |
+
lfs: true
|
23 |
+
|
24 |
+
# Step 2: Push all the files from your GitHub repository to your Hugging Face Space.
|
25 |
+
- name: Push to Hugging Face Hub
|
26 |
+
env:
|
27 |
+
# Your Hugging Face token, stored as a secret
|
28 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
29 |
+
run: |
|
30 |
+
# This command adds your new Hugging Face Space as a remote destination.
|
31 |
+
git remote add space https://user:${HF_TOKEN}@huggingface.co/spaces/phenixrhyder/Checkerboard-Frame-Generator
|
32 |
+
|
33 |
+
# This command force-pushes the 'main' branch of your GitHub repo to the 'main' branch of the Space.
|
34 |
+
git push --force space main
|