Skip to content

Commit

Permalink
Merge pull request #12 from ewjoachim/auto-release
Browse files Browse the repository at this point in the history
Fix auto-deployment - third time's the charm
  • Loading branch information
ewjoachim authored Mar 8, 2021
2 parents d6079e6 + 6370abe commit 0323c21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,5 @@ jobs:
- name: Install dependencies
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
run: poetry publish --username "__token__" --password "${{ secrets.PYPI_TOKEN }}"
- name: Publish on PyPI
run: scripts/publish "${{ secrets.PYPI_TOKEN }}"
4 changes: 4 additions & 0 deletions scripts/publish
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -eu

sphinx-build -EW docs docs/_build/html "$@"

0 comments on commit 0323c21

Please sign in to comment.