Skip to content

Commit c6afd83

Browse files
authored
Improve release and publish (#7)
1 parent 575db1c commit c6afd83

File tree

2 files changed

+18
-15
lines changed

2 files changed

+18
-15
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,11 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v4
13-
14-
- name: Set up Python
15-
uses: actions/setup-python@v3
12+
- name: Download dist artifact
13+
uses: actions/download-artifact@v3
1614
with:
17-
python-version: '3.10'
18-
19-
- name: Install dependencies
20-
run: |
21-
python3 -m pip install --upgrade pip
22-
python3 -m pip install .[dev]
23-
python3 -m pip install --upgrade twine build
24-
25-
- name: Build package
26-
run: |
27-
python3 -m build
15+
name: dist-artifact
16+
path: dist
2817

2918
- name: Publish package to Pypi
3019
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29

.github/workflows/release.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,20 @@ jobs:
6464
run: |
6565
python3 -m build
6666
67+
- name: Upload dist as artifact
68+
uses: actions/upload-artifact@v3
69+
with:
70+
name: dist-artifact
71+
path: dist/
72+
73+
- name: Compress the artifacts
74+
run: |
75+
cd dist
76+
zip -r unit-test-report.zip unit-test-report
77+
zip -r coverage-report.zip coverage-report
78+
zip -r pylint-report.zip pylint-report
79+
zip -r codestyle-report.zip codestyle-report
80+
6781
- name: Package release
6882
id: package
6983
run: |

0 commit comments

Comments
 (0)