From 1577ab0170f890ac7e081e15c9384106e63975c2 Mon Sep 17 00:00:00 2001 From: Joachim Jablon Date: Mon, 8 Mar 2021 18:47:10 +0100 Subject: [PATCH] Fix auto-deployment - third time's the charm --- .github/workflows/publish.yml | 5 ++++- scripts/publish | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 94c7fe2..f40e79f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 }}" diff --git a/scripts/publish b/scripts/publish index c6ccabc..080918d 100755 --- a/scripts/publish +++ b/scripts/publish @@ -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\d+\.\d+\.\d+)') +poetry publish --username "__token__" --password "$1"