Hasan Iqbal
commited on
HF Deploy should happen on release
Browse files
.github/workflows/main.yaml
CHANGED
@@ -9,7 +9,7 @@ jobs:
|
|
9 |
huggingface_deploy:
|
10 |
name: Deploy to Hugging Face
|
11 |
runs-on: ubuntu-latest
|
12 |
-
|
13 |
steps:
|
14 |
- name: Check out code
|
15 |
uses: actions/checkout@v3
|
|
|
9 |
huggingface_deploy:
|
10 |
name: Deploy to Hugging Face
|
11 |
runs-on: ubuntu-latest
|
12 |
+
if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') }}
|
13 |
steps:
|
14 |
- name: Check out code
|
15 |
uses: actions/checkout@v3
|