File tree Expand file tree Collapse file tree 2 files changed +83
-0
lines changed Expand file tree Collapse file tree 2 files changed +83
-0
lines changed Original file line number Diff line number Diff line change 1+ name : pypi deploy
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*' # Trigger only on tags like v1.2.3
7+
8+ jobs :
9+ build-and-publish :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Check out code
14+ uses : actions/checkout@v4
15+
16+ - name : Set up Python
17+ uses : actions/setup-python@v5
18+ with :
19+ python-version : ' 3.12'
20+
21+ - name : Install build tools
22+ run : |
23+ python -m pip install --upgrade pip
24+ pip install build
25+
26+ - name : Build package
27+ run : |
28+ python -m build
29+
30+ # - name: Publish to PyPI
31+ 32+ # with:
33+ # password: ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : manual deploy
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ tags :
7+ - ' v*'
8+
9+ concurrency :
10+ group : ${{ github.workflow }}-${{ github.ref }}
11+ cancel-in-progress : true
12+
13+ jobs :
14+ manual-deploy :
15+ name : manual deploy
16+ runs-on : ubuntu-latest
17+ permissions :
18+ contents : write
19+
20+ steps :
21+ - name : Checkout pybdsim
22+ uses : actions/checkout@v4
23+ id : checkout
24+
25+ - name : Build manual
26+ shell : bash
27+ run : |
28+ #
29+ pip install sphinx
30+
31+ # docs dir
32+ cd docs
33+
34+ # make html
35+ make html
36+
37+ - name : Upload manuals
38+ uses : actions/upload-artifact@v4
39+ with :
40+ name : manuals
41+ path : ${{ github.workspace }}/docs/build/html
42+
43+ - name : Deploy to GitHub Pages
44+ uses : peaceiris/actions-gh-pages@v3
45+ with :
46+ github_token : ${{ secrets.GITHUB_TOKEN }}
47+ publish_branch : gh-pages
48+ publish_dir : ${{ github.workspace }}/docs/build/html
49+ allow_empty_commit : true
50+
You can’t perform that action at this time.
0 commit comments