Skip to content

Commit 208713b

Browse files
committed
hack around old vercel python version
As per simonw/datasette-publish-vercel#68 the current python vercel runtime is no longer supported. This method is a bit of a hack but allows for upgrading without having to change the datasette dependency dramatically.
1 parent 783f3e7 commit 208713b

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

.github/workflows/ccadb.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@ jobs:
6868
- name: Set up Python
6969
uses: actions/setup-python@v6
7070
with:
71-
python-version: |
72-
3.9
73-
3.11
71+
python-version: 3.11
7472
cache: 'pip'
7573

7674
- name: Install Python dependencies
@@ -96,6 +94,18 @@ jobs:
9694
env:
9795
NOW_TOKEN: ${{ secrets.VERCEL }}
9896
run: |-
97+
datasette publish vercel CCADB.db \
98+
--project ccadb \
99+
--metadata metadata.yaml \
100+
--install datasette-template-sql \
101+
--install "datasette-atom>=0.7" \
102+
--install datasette-json-html \
103+
--install beautifulsoup4 \
104+
--install datasette-debug-asgi \
105+
--install "datasette-graphql>=0.12" \
106+
--install datasette-media \
107+
--generate-vercel-json > vercel.json
108+
sed -i 's/@vercel\/python@3\.0\.7/@vercel\/python@4.5.1/g' vercel.json
99109
datasette publish vercel CCADB.db \
100110
--token $NOW_TOKEN \
101111
--branch main \
@@ -108,7 +118,8 @@ jobs:
108118
--install datasette-debug-asgi \
109119
--install "datasette-graphql>=0.12" \
110120
--install datasette-media \
111-
--public
121+
--public \
122+
--vercel-json vercel.json
112123
113124
commit-scripts:
114125
needs: build

0 commit comments

Comments
 (0)