Spaces:
Runtime error
Runtime error
Commit
·
e190fe0
1
Parent(s):
edb1d95
added kaggle action
Browse files
.github/workflows/kaggle.yaml
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Push notebook to kaggle
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
push:
|
| 5 |
+
branches:
|
| 6 |
+
- train
|
| 7 |
+
|
| 8 |
+
jobs:
|
| 9 |
+
deploy:
|
| 10 |
+
runs-on: ubuntu-latest
|
| 11 |
+
steps:
|
| 12 |
+
- name: Kaggle push
|
| 13 |
+
uses: joelhanson/kaggle-kernel-actions
|
| 14 |
+
with:
|
| 15 |
+
kaggle_username: ${{ secrets.kaggle_username }}
|
| 16 |
+
kaggle_key: ${{ secrets.kaggle_key }}
|
| 17 |
+
kernel_id: anujpanthri/train-image-colorization
|
| 18 |
+
kaggle_make_new_kernel: true
|
| 19 |
+
code_file_path: kaggle/train-image-colorization.ipynb
|
| 20 |
+
kaggle_metadata_path: kaggle/kernel-metadata.json
|
| 21 |
+
collect_output: true
|
| 22 |
+
|
| 23 |
+
- name: Download outputs
|
| 24 |
+
run: |
|
| 25 |
+
ls outputs/
|
| 26 |
+
unzip outputs/outputs.zip
|
| 27 |
+
ls outputs/outputs/
|
| 28 |
+
|
| 29 |
+
- name: Download outputs
|
| 30 |
+
uses: actions/upload-artifact@v1
|
| 31 |
+
with:
|
| 32 |
+
name: outputs
|
| 33 |
+
path: outputs/outputs.zip
|