Skip to content

Commit 72f6f28

Browse files
committed
Test alternative deployment
1 parent 7bc5dd7 commit 72f6f28

3 files changed

Lines changed: 48 additions & 20172 deletions

File tree

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Build and Deploy
2+
3+
on:
4+
workflow_dispatch
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
- name: Setup Python
13+
uses: actions/setup-python@v5
14+
with:
15+
python-version: '3.11'
16+
- name: Install the dependencies
17+
run: |
18+
python -m pip install -r requirements.txt
19+
- name: Assemble /content directory
20+
run: |
21+
cp README.md content
22+
curl https://github.com/HowTheyVote/data/releases/latest/download/export.zip
23+
ls
24+
unzip export.zip -d content/data/
25+
rm content/data/.keep
26+
- name: Build JupyterLite site
27+
run: jupyter lite build --contents content --output-dir dist
28+
- name: Upload artifact
29+
uses: actions/upload-pages-artifact@v3
30+
with:
31+
path: ./dist
32+
33+
deploy:
34+
needs: build
35+
if: github.ref == 'refs/heads/main'
36+
permissions:
37+
pages: write
38+
id-token: write
39+
40+
environment:
41+
name: github-pages
42+
url: ${{ steps.deployment.outputs.page_url }}
43+
44+
runs-on: ubuntu-latest
45+
steps:
46+
- name: Deploy to GitHub Pages
47+
id: deployment
48+
uses: actions/deploy-pages@v4

content/data/.keep

Whitespace-only changes.

0 commit comments

Comments
 (0)