Skip to content

Commit 2a89e48

Browse files
dimblebydidix21
authored andcommitted
build and publish wheel
1 parent a3c379d commit 2a89e48

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/prepare-release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
- name: Install dependencies
2525
run: |
2626
python -m pip install --upgrade pip
27+
pip install build
2728
pip install twine
2829
pip install coverage
2930
pip install pytest
@@ -41,14 +42,14 @@ jobs:
4142
- name: "✏️ Generate release changelog"
4243
uses: heinrichreimer/[email protected]
4344
with:
44-
token: ${{ secrets.GITHUB_TOKEN }}
45-
45+
token: ${{ secrets.GITHUB_TOKEN }}
46+
4647
- name: Check commit has been updated
4748
run: |
4849
git diff
4950
5051
- name: Build package
51-
run: python setup.py sdist --formats=gztar,zip
52+
run: python -m build
5253

5354
- name: Upload binaries to release
5455
uses: xresloader/upload-to-github-release@v1
@@ -64,7 +65,7 @@ jobs:
6465
git config --local user.email "[email protected]"
6566
git config --local user.name "github-actions[bot]"
6667
git commit -m "Bump version to ${{ steps.latest_prerelease.outputs.tag_name }}" -a
67-
68+
6869
- name: Push changes
6970
uses: ad-m/[email protected]
7071
with:

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Please note we have a code of conduct, please follow it in all your interactions
1616
2. Increase the version number in the `mdutils/doc/source/config.py` file.
1717
3. Increase the version number in the `mdutils/setup.py` file.
1818
3. Increase the version number in the `mdutils/pyproject.toml` file.
19-
4. Increate the version number in the `.github_changelog_generator` file.
19+
4. Increase the version number in the `.github_changelog_generator` file.
2020
5. Run `github_changelog_generator -u didix21 -p mdutils`.
21-
6. Run `python setup.py sdist --formats=gztar,zip`.
21+
6. Run `python -m build`.
2222
7. Upload package to pypi: `twine upload dist/*`.

0 commit comments

Comments
 (0)