Skip to content

Commit

Permalink
Merge pull request writer#365 from FabienArcellier/fix/fix-build-to-p…
Browse files Browse the repository at this point in the history
…ublish-app-template-automatically

feat: provision app templates during publishing
  • Loading branch information
ramedina86 authored Mar 28, 2024
2 parents 469cce3 + 08c6c5b commit 2a65ce5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion alfred/publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 2a65ce5

Please sign in to comment.