Skip to content

Commit

Permalink
ci: Enable PyPI push
Browse files Browse the repository at this point in the history
Python package push to PyPI was disabled. This commit enables it back.
Also release version 1.0.1
  • Loading branch information
simonkeyd committed Jun 11, 2022
1 parent 94a1487 commit 6ac7e33
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,24 @@ jobs:
run: |
python3 -m pip install --upgrade pip build twine
# - name: build & push
# env:
# PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
# run: |
# python3 -m build
# python3 -m twine upload --user "__token__" \
# --password "$PYPI_TOKEN" \
# --non-interactive \
# dist/*
- name: build & push
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
python3 -m build
python3 -m twine upload --user "__token__" \
--password "$PYPI_TOKEN" \
--non-interactive \
--skip-existing \
dist/*
- name: craft changelog
id: craft-changelog
run: |
echo "CHANGELOG<<MDR" >> $GITHUB_ENV
echo "## changelog" >> $GITHUB_ENV
if [[ $(git tag | wc -l) -ge 2 ]]; then
git_changelog_range="$(git describe --abbrev=0 ${GITHUB_REF}^)..$GITHUB_REF)"
git_changelog_range="$(git describe --abbrev=0 ${GITHUB_REF}^)..$GITHUB_REF"
fi
git log --pretty='%s ' ${git_changelog_range} >> $GITHUB_ENV
echo "MDR" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name="bgcar",
version="1.0.0",
version="1.0.1",
author="simonkeyd",
author_email="simon.kheng1337@gmail.com",
license="GNU GPLv3",
Expand Down

0 comments on commit 6ac7e33

Please sign in to comment.