From bc7f3b0510c29f1394c667885d2885e9dbe0befe Mon Sep 17 00:00:00 2001 From: Simon Guigui Date: Fri, 14 Jan 2022 14:48:40 +0100 Subject: [PATCH] fix(ci): fix publish job --- .github/workflows/cicd.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index b5c6b35..e9ea751 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -130,7 +130,7 @@ jobs: files: ops2deb_linux_amd64 publish: - runs-on: ubuntu-latest + runs-on: ubuntu-18.04 needs: [test_and_build] if: startsWith(github.ref, 'refs/tags') steps: @@ -151,8 +151,13 @@ jobs: - name: Install Poetry uses: snok/install-poetry@v1 + - name: Get Release Version + run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV + - name: Build Distribution - run: poetry run poetry build + run: | + poetry version "$RELEASE_VERSION" + poetry build - name: Publish distribution 📦 to PyPI uses: pypa/gh-action-pypi-publish@master