Skip to content

Commit 07916a5

Browse files
committed
ci: upload build artifact
1 parent 222c194 commit 07916a5

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/clang-tidy-junit.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,27 @@ jobs:
77
- uses: actions/setup-python@v6
88
with:
99
python-version: '3.x'
10+
- run: pipx run build
11+
- uses: actions/upload-artifact@v7
12+
with:
13+
name: dist
14+
path: dist
1015
- run: pip install -e .[dev]
1116
- run: black --check **/*.py
1217
- run: pylint **/*.py
1318
- run: mypy
1419
- run: coverage run -m unittest
1520
- run: coverage report
16-
pypi:
21+
deploy:
1722
if: github.ref_type == 'tag'
1823
needs: test
1924
permissions:
2025
id-token: write
21-
environment: release
26+
environment: deploy
2227
runs-on: ubuntu-latest
2328
steps:
24-
- uses: actions/checkout@v6
25-
- uses: actions/setup-python@v6
29+
- uses: actions/download-artifact@v8
2630
with:
27-
python-version: '3.x'
28-
- run: pipx run build
31+
name: dist
32+
path: dist
2933
- uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)