Skip to content

build: sync env

build: sync env #13

Workflow file for this run

name: Sync endpoint
on:
push:
branches:
- sync
jobs:
sync-to-hub:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Restore cache
id: file-restore
uses: actions/cache/restore@v3
with:
path: |
sync/endpoint.txt
key: endpoint-${{ github.run_id }}
restore-keys: |
endpoint-
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- name: run
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
ENDPOINTS: ${{ vars.ENDPOINTS }}
run: cd sync && pip install huggingface_hub && python sync.py && cat endpoint.txt
- name: Save cache
id: file-save
uses: actions/cache/save@v3
with:
path: |
sync/endpoint.txt
key: endpoint-${{ github.run_id }}
restore-keys: |
endpoint-