Skip to content

Commit

Permalink
Merge pull request #13 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 0323c21 + 1577ab0 commit 798eb35
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ jobs:
with:
python-version: 3.x

- name: Install dependencies
- name: Install Poetry
run: pip install poetry

- name: Install Dev dependencies
run: poetry install

- name: Publish on PyPI
run: scripts/publish "${{ secrets.PYPI_TOKEN }}"
5 changes: 4 additions & 1 deletion scripts/publish
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env bash
set -eu

sphinx-build -EW docs docs/_build/html "$@"
# This script is not meant to run inside poetry

poetry version $(poetry run dunamai from git --pattern '(?P<base>\d+\.\d+\.\d+)')
poetry publish --username "__token__" --password "$1"

0 comments on commit 798eb35

Please sign in to comment.