diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2739f9c..779c9b3 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -80,10 +80,12 @@ jobs: python-version: ${{ matrix.python-version }} - uses: abatilo/actions-poetry@v2 - name: Install dependencies - run: poetry install + run: | + poetry install + apt-get update && apt-get install -y yq - run: poetry config repositories.testpypi https://test.pypi.org/legacy/ - name: Substitute dynamic version - run: sed -ir 's/version *= *.([0-9.]+)./version = "\1-123"/' pyproject.toml + run: tomlq -i --arg now $(date +%s) '.tool.poetry.version += "-" + $now' pyproject.toml - name: Publish package run: poetry publish -r testpypi --build env: