diff --git a/.github/workflows/constraints.txt b/.github/workflows/constraints.txt index 6198f84..04c1d88 100644 --- a/.github/workflows/constraints.txt +++ b/.github/workflows/constraints.txt @@ -3,3 +3,4 @@ nox==2021.10.1 nox-poetry==0.9.0 poetry==1.1.12 virtualenv==20.10.0 +poetry-dynamic-versioning==0.13.1 diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index fa3698e..c68345d 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -26,29 +26,9 @@ jobs: - name: Install Poetry run: | - pip install --constraint=.github/workflows/constraints.txt poetry + pip install --constraint=.github/workflows/constraints.txt poetry poetry-dynamic-constraints poetry --version - - name: Check if there is a parent commit - id: check-parent-commit - run: | - echo "::set-output name=sha::$(git rev-parse --verify --quiet HEAD^)" - - - name: Detect and tag new version - id: check-version - if: steps.check-parent-commit.outputs.sha - uses: salsify/action-detect-and-tag-new-version@v2.0.1 - with: - version-command: | - bash -o pipefail -c "poetry version | awk '{ print \$2 }'" - - - name: Bump version for developmental release - if: "! steps.check-version.outputs.tag" - run: | - poetry version patch && - version=$(poetry version | awk '{ print $2 }') && - poetry version $version.dev.$(date +%s) - - name: Build package run: | poetry build --ansi @@ -74,4 +54,4 @@ jobs: publish: ${{ steps.check-version.outputs.tag != '' }} tag: ${{ steps.check-version.outputs.tag }} env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} diff --git a/README.rst b/README.rst index 8329262..5a506d0 100644 --- a/README.rst +++ b/README.rst @@ -7,14 +7,14 @@ Py Healthchecks.Io |pre-commit| |Black| -.. |PyPI| image:: https://img.shields.io/pypi/v/py-healthchecks.io.svg - :target: https://pypi.org/project/py-healthchecks.io/ +.. |PyPI| image:: https://img.shields.io/pypi/v/py-healthchecksio.svg + :target: https://pypi.org/project/py-healthchecksio/ :alt: PyPI -.. |Status| image:: https://img.shields.io/pypi/status/py-healthchecks.io.svg - :target: https://pypi.org/project/py-healthchecks.io/ +.. |Status| image:: https://img.shields.io/pypi/status/py-healthchecksio.svg + :target: https://pypi.org/project/py-healthchecksio/ :alt: Status -.. |Python Version| image:: https://img.shields.io/pypi/pyversions/py-healthchecks.io - :target: https://pypi.org/project/py-healthchecks.io +.. |Python Version| image:: https://img.shields.io/pypi/pyversions/py-healthchecksio + :target: https://pypi.org/project/py-healthchecksio :alt: Python Version .. |License| image:: https://img.shields.io/pypi/l/py-healthchecks.io :target: https://opensource.org/licenses/MIT