diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 80df7fad..e7e6854b 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -16,6 +16,10 @@ search = **unreleased** replace = **unreleased** **v{new_version}** +[bumpversion:file:CITATION.cff] +search = version: {current_version} +replace = version: {new_version} + [bumpversion:part:release] optional_value = gamma values = diff --git a/.github/workflows/cffconvert.yml b/.github/workflows/cffconvert.yml new file mode 100644 index 00000000..c40a34d8 --- /dev/null +++ b/.github/workflows/cffconvert.yml @@ -0,0 +1,24 @@ +name: cffconvert + +on: + push: + paths: + - CITATION.cff + +permissions: + contents: read + +jobs: + validation: + name: validate + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b + with: + persist-credentials: false + + - name: cffconvert + uses: citation-file-format/cffconvert-github-action@4cf11baa70a673bfdf9dad0acc7ee33b3f4b6084 + with: + args: "--validate" diff --git a/CITATION.cff b/CITATION.cff new file mode 100644 index 00000000..c386f445 --- /dev/null +++ b/CITATION.cff @@ -0,0 +1,19 @@ +# Parser information. +cff-version: 1.2.0 +message: Please cite this software using these meta data. + +# Version information. +date-released: 2020-10-07 +version: 1.0.2-dev + +# Project information. +abstract: Version-bump your software with a single command! +authors: + - alias: c4urself + family-names: Verkerk + given-names: Christian + - name: The bump2version Community +license: MIT +repository-code: https://github.com/c4urself/bump2version +title: bump2version +url: https://pypi.python.org/pypi/bump2version