Skip to content

Commit

Permalink
Merge branch 'main' into sync
Browse files Browse the repository at this point in the history
  • Loading branch information
weaigc committed Sep 8, 2023
2 parents c1fa065 + b19ed74 commit 2da30dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ jobs:
with:
path: |
sync/endpoint.txt
key: endpoint
key: endpoint-${{ github.run_id }}
restore-keys: |
endpoint-
- uses: actions/setup-python@v4
with:
python-version: '3.10'
Expand All @@ -24,11 +26,13 @@ jobs:
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
ENDPOINTS: ${{ vars.ENDPOINTS }}
run: cd sync && cat endpoint.txt && pip install huggingface_hub && python sync.py
run: cd sync && cat endpoint.txt && 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: ${{ steps.restore-cache.outputs.cache-primary-key }}
key: endpoint-${{ github.run_id }}
restore-keys: |
endpoint-
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"dev": "cross-env DEBUG=bingo* next dev --hostname 0.0.0.0",
"build": "next build",
"start": "node ./server.js",
"start": "cross-env NODE_ENV=production node ./server.js",
"lint": "next lint"
},
"dependencies": {
Expand Down

0 comments on commit 2da30dd

Please sign in to comment.