From a7eb5d30b0dcfbaaccaa54b87e93b248b0f80471 Mon Sep 17 00:00:00 2001 From: Douglas Date: Mon, 12 Aug 2024 14:34:10 -0500 Subject: [PATCH] (MAJOR) DS4B release --- .github/workflows/versioning.yml | 44 ++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/versioning.yml diff --git a/.github/workflows/versioning.yml b/.github/workflows/versioning.yml new file mode 100644 index 0000000..d77d0a5 --- /dev/null +++ b/.github/workflows/versioning.yml @@ -0,0 +1,44 @@ +name: "Versioning" +on: + push: + branches: + - main + pull_request_review: + types: + - submitted +jobs: + deploy: + name: "Versioning" + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Versioning + uses: paulhatch/semantic-version@v5.0.2 + with: + # The prefix to use to identify tags + tag_prefix: "v" + # A string which, if present in a git commit, indicates that a change represents a + # major (breaking) change, supports regular expressions wrapped with '/' + major_pattern: "(MAJOR)" + # A string which indicates the flags used by the `major_pattern` regular expression. Supported flags: idgs + major_regexp_flags: "" + # Same as above except indicating a minor change, supports regular expressions wrapped with '/' + minor_pattern: "(MINOR)" + # A string which indicates the flags used by the `minor_pattern` regular expression. Supported flags: idgs + minor_regexp_flags: "" + # A string to determine the format of the version output + version_format: "${major}.${minor}.${patch}" + # If this is set to true, *every* commit will be treated as a new version. + bump_each_commit: true + # If true, the body of commits will also be searched for major/minor patterns to determine the version type. + search_commit_body: false + # The output method used to generate list of users, 'csv' or 'json'. + user_format_type: "json" +