Skip to content

Commit 440a59f

Browse files
committed
Try Cloudflare Pages
1 parent f513d4b commit 440a59f

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/workflows/static.yml

+11
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ permissions:
2020
contents: read
2121
pages: write
2222
id-token: write
23+
deployments: write
2324

2425
# Allow one concurrent deployment
2526
concurrency:
@@ -130,3 +131,13 @@ jobs:
130131
id: deployment
131132
uses: actions/deploy-pages@v2
132133
if: ${{ success() }}
134+
135+
- name: Deploy to Cloudflare Pages
136+
uses: cloudflare/pages-action@1
137+
if: ${{ success() }}
138+
with:
139+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
140+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
141+
projectName: hndigest
142+
directory: 'output'
143+
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

db/summary.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ def expire():
108108
Summary.model.not_in((Model.OPENAI.value, Model.TRANSFORMER.value, Model.LLAMA.value)))
109109
result = session.execute(stmt)
110110
cost = (time.time() - start) * 1000
111-
logger.info(f'evicted {result.rowcount} content items, cost(ms): {cost:.2f}')
111+
logger.info(f'evicted {result.rowcount} full content items, cost(ms): {cost:.2f}')
112+
112113
session.commit()
113114
return deleted + result.rowcount

0 commit comments

Comments
 (0)