workflows

This commit is contained in:
Andrew Herrington
2021-12-16 18:08:21 -06:00
parent c147c9f490
commit 882dde5f55
3 changed files with 9 additions and 28 deletions

View File

@@ -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

View File

@@ -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 }}

View File

@@ -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