Skip to content

Commit 923f8f3

Browse files
author
Justin Poehnelt
committed
chore: update release to match pypa/gh-action-pypi-publish
1 parent 975071f commit 923f8f3

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/scripts/install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ if ! python3 -m pip --version; then
1010
else
1111
sudo python3 -m pip install --upgrade setuptools
1212
python3 -m pip install nox
13+
python3 -m pip install --prefer-binary twine
1314
fi

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@ on:
1919
jobs:
2020
release:
2121
runs-on: ubuntu-latest
22+
env:
23+
PYTHONDONTWRITEBYTECODE: 1
2224
steps:
2325
- name: Setup Python
2426
uses: "actions/setup-python@v1"
2527
with:
26-
python-version: "3.6"
28+
python-version: "3.9"
2729
- name: Checkout
2830
uses: actions/checkout@v2
2931
with:

.releaserc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ plugins:
1414
from: 'version=".*"'
1515
to: 'version="${nextRelease.version}"'
1616
- - "@semantic-release/exec"
17-
- prepareCmd: "rm -rf dist && python3 setup.py sdist && python3 -m twine check dist/*"
17+
- prepareCmd: "python3 setup.py sdist && python3 -m twine check dist/*"
1818
publishCmd: "python3 -m twine upload dist/*"
1919
- - "@semantic-release/git"
2020
- assets:

0 commit comments

Comments
 (0)