-
Notifications
You must be signed in to change notification settings - Fork 12
54 lines (50 loc) · 1.39 KB
/
deploy.yml
File metadata and controls
54 lines (50 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Deploy
# Reference: https://github.com/alex-page/alexpage.dev/commit/717efbcc57d0c8ce9f64d28526263610ea444823
on:
push:
branches: main
permissions:
contents: read
pages: write
id-token: write
jobs:
pre_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y pandoc
- name: Install vitessce
run: uv sync --extra dev --extra docs --extra all
- name: Run tests
run: uv run pytest
- name: Build a binary wheel and a source tarball
run: uv build --sdist --wheel
- name: Build docs
run: |
uv run make html
touch docs-dist/html/.nojekyll
- uses: actions/upload-pages-artifact@v3
with:
path: ./docs-dist/html
- name: Deploy package to PyPI
continue-on-error: true
uses: pypa/gh-action-pypi-publish@release/v1.14
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
deploy:
runs-on: ubuntu-latest
needs: pre_deploy
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4