Skip to content

Commit

Permalink
Fix auto-release, again
Browse files Browse the repository at this point in the history
  • Loading branch information
ewjoachim committed Mar 8, 2021
1 parent e2e6436 commit c0bbbb0
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 9 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,23 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: success

- name: Exit if CI did not succeed
if: steps.wait-for-ci.outputs.conclusion != 'success'
run: exit 1

- uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.x

- name: Install dependencies
run: pip install build
- name: Build the wheel
run: python -m build
run: pip install poetry

- name: Adjust version to the current tag
run: poetry version $(poetry run dunamai from git --pattern '(?P<base>\d+\.\d+\.\d+)')

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
run: poetry publish --username "__token__" --password "${{ secrets.PYPI_TOKEN }}"
14 changes: 13 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pypitoken"
version = "0.1.0"
version = "0.0.0"
description = "Manipulate PyPI API tokens"
authors = ["Joachim Jablon <ewjoachim@gmail.com>"]
classifiers = [
Expand All @@ -23,6 +23,7 @@ Sphinx = "^3.5.1"
sphinx-material = "^0.0.32"
sphinx-github-changelog = "^1.0.2"
sphinx-autodoc-typehints = "^1.11.1"
dunamai = "^1.5.4"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down

0 comments on commit c0bbbb0

Please sign in to comment.