-
-
Notifications
You must be signed in to change notification settings - Fork 51
41 lines (33 loc) · 879 Bytes
/
solidago-publish.yml
File metadata and controls
41 lines (33 loc) · 879 Bytes
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
name: Publish Solidago
on:
push:
branches:
- main
paths:
- 'solidago/src/solidago/__version__.py'
defaults:
run:
working-directory: solidago
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.13"
- name: Install build dependencies
run: pip install build
- name: Build distribution
run: python -m build
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: solidago/dist/
password: ${{ secrets.SOLIDAGO_PYPI_API_TOKEN }}
- name: Publish documentation on GitHub Pages
run: |
pip install -e .[docs]
git fetch origin gh-pages
mkdocs gh-deploy