diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 08b9aebb6..0ae40d3a4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -34,10 +34,6 @@ jobs: - name: install npm environment run: npm ci - - name: run continuous integration to check everything is fine - run: | - poetry run alfred ci - - name: publish on pypi run: | poetry run alfred publish.pypi diff --git a/alfred/publish.py b/alfred/publish.py index f8b7c3f14..c223e77b5 100644 --- a/alfred/publish.py +++ b/alfred/publish.py @@ -79,8 +79,10 @@ def publish_pypi(): """ pypi_token = os.getenv('PYPI_TOKEN', None) if pypi_token is not None: + alfred.invoke_command("build") + alfred.run(f"poetry config pypi-token.pypi {pypi_token}") - alfred.run("poetry publish --build") + alfred.run("poetry publish") else: click.echo(click.style("PYPI_TOKEN is not set as environment variable", fg='red')) sys.exit(1)