File tree 3 files changed +8
-67
lines changed
3 files changed +8
-67
lines changed Original file line number Diff line number Diff line change 14
14
types : [published]
15
15
workflow_dispatch :
16
16
17
- permissions :
18
- contents : read
19
-
20
17
jobs :
21
18
deploy :
22
-
23
- runs-on : ubuntu-latest
24
-
25
- steps :
26
- - uses : actions/checkout@v4
27
- # use fetch --all for setuptools_scm to work
28
- with :
29
- fetch-depth : 0
30
- - name : Set up Python
31
- uses : actions/setup-python@v5
32
- with :
33
- python-version : ' 3.x'
34
- - name : Install dependencies
35
- run : python -m pip install --upgrade pip twine
36
- - name : Build wheel
37
- run : python -m pip wheel -w dist .
38
- - name : Check distribution
39
- run : twine check dist/*
40
- - name : Publish package (to TestPyPI)
41
- if : github.event_name == 'workflow_dispatch' && github.repository == 'cpp-linter/clang-tools-pip'
42
- env :
43
- TWINE_USERNAME : __token__
44
- TWINE_PASSWORD : ${{ secrets.TEST_PYPI_TOKEN }}
45
- run : twine upload --repository testpypi dist/*
46
- - name : Publish package (to PyPI)
47
- if : github.event_name != 'workflow_dispatch' && github.repository == 'cpp-linter/clang-tools-pip'
48
- env :
49
- TWINE_USERNAME : __token__
50
- TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
51
- run : twine upload dist/*
19
+ uses : cpp-linter/.github/.github/workflows/py-publish.yml@main
20
+ secrets : inherit
Original file line number Diff line number Diff line change 31
31
run : |
32
32
python3 -m pip install --upgrade pip
33
33
python3 -m pip install . -r requirements-dev.txt
34
+
34
35
- name : Run pre-commit
35
36
run : pre-commit run --all-files
36
37
@@ -133,30 +134,6 @@ jobs:
133
134
fi
134
135
135
136
docs :
136
- runs-on : ubuntu-latest
137
- steps :
138
- - uses : actions/checkout@v4
139
-
140
- - uses : actions/setup-python@v5
141
- with :
142
- python-version : " 3.10"
143
-
144
- - run : python -m pip install . -r docs/requirements.txt
145
-
146
- - name : Build docs
147
- working-directory : docs
148
- run : sphinx-build -E -W -b html . _build/html
149
-
150
- - name : Save built docs as artifact
151
- uses : actions/upload-artifact@v4
152
- with :
153
- name : " clang-tools-pip_docs"
154
- path : docs/_build/html
155
-
156
- - name : Upload to github pages
157
- # only publish doc changes from main branch
158
- if : github.ref == 'refs/heads/main'
159
- uses : peaceiris/actions-gh-pages@v3
160
- with :
161
- github_token : ${{ secrets.GITHUB_TOKEN }}
162
- publish_dir : ./docs/_build/html
137
+ uses : cpp-linter/.github/.github/workflows/sphinx.yml@main
138
+ with :
139
+ path-to-doc : docs/_build/html
Original file line number Diff line number Diff line change 7
7
workflow_dispatch :
8
8
9
9
jobs :
10
- update_release_draft :
11
- runs-on : ubuntu-latest
12
- steps :
13
- # Draft your next Release notes as Pull Requests are merged into the default branch
14
- - uses : release-drafter/release-drafter@v6
15
- env :
16
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
10
+ draft-release :
11
+ uses : cpp-linter/.github/.github/workflows/release-drafter.yml@main
You can’t perform that action at this time.
0 commit comments