-
Notifications
You must be signed in to change notification settings - Fork 52
46 lines (36 loc) · 1.08 KB
/
hub.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Release new version HuggingFace Hub
on:
release:
types: [created]
jobs:
push-to-hf-hub:
name: Release new version to HuggingFace Hub
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.release.tag_name }}
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: '3.9'
- name: Install Requirements
run: pip install .
- name: Install Requirements
run: pip install isort
- name: Prepare dataset imports
run: >-
bash ./utils/hf/prepare_dataset_imports.sh
- name: Prepare metric imports
run: >-
bash ./utils/hf/prepare_metric_imports.sh
- name: Push dataset to HuggingFace Hub
env:
HUGGINGFACE_HUB_TOKEN: ${{ secrets.UNITXT_HUGGINGFACE_WRITE_TOKEN }}
run: >-
python ./utils/hf/prepare_dataset.py
- name: Push metric to HuggingFace Hub
env:
HUGGINGFACE_HUB_TOKEN: ${{ secrets.UNITXT_HUGGINGFACE_WRITE_TOKEN }}
run: >-
python ./utils/hf/prepare_metric.py