Ridealist commited on
Commit
5603c64
1 Parent(s): fd5803b

build: add cd pipeline for register remote branch for HF spaces

Browse files
Files changed (1) hide show
  1. .github/workflows/cd.yml +6 -1
.github/workflows/cd.yml CHANGED
@@ -4,6 +4,7 @@ on:
4
  push:
5
  branches:
6
  - master
 
7
 
8
  workflow_dispatch:
9
 
@@ -14,7 +15,11 @@ jobs:
14
  - uses: actions/checkout@v3
15
  with:
16
  fetch-depth: 0
17
- lfs: true
 
 
 
 
18
  - name: Push to hub
19
  env:
20
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
 
4
  push:
5
  branches:
6
  - master
7
+ paths-ignore: [".github/**"]
8
 
9
  workflow_dispatch:
10
 
 
15
  - uses: actions/checkout@v3
16
  with:
17
  fetch-depth: 0
18
+ lfs: true
19
+ - name: Add remote
20
+ env:
21
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
22
+ run: git remote add space https://DEBO-PROJECT:[email protected]/spaces/DEBO-PROJECT/DEBO-DEV
23
  - name: Push to hub
24
  env:
25
  HF_TOKEN: ${{ secrets.HF_TOKEN }}