From 0cfd021ef2265ea9346a1bbd061d54159ec92d07 Mon Sep 17 00:00:00 2001 From: Joel Klimont Date: Wed, 5 Oct 2022 22:16:13 +0200 Subject: [PATCH] started working on automatic build of complib deb package --- .github/workflows/complib-package.yml | 36 +++++++++++++++++++++++++++ client_s2/build_deb.sh | 2 +- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/complib-package.yml diff --git a/.github/workflows/complib-package.yml b/.github/workflows/complib-package.yml new file mode 100644 index 0000000..9d0725d --- /dev/null +++ b/.github/workflows/complib-package.yml @@ -0,0 +1,36 @@ +name: Build comlib.deb package + +on: + push: + branches: + - build-test + + +jobs: + build-complib-deb: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Bump version number + uses: paulhatch/semantic-version@v4.0.2 + with: + tag_prefix: "v" + major_pattern: "(MAJOR)" + major_regexp_flags: "" + minor_pattern: "(MINOR)" + minor_regexp_flags: "" + format: "${major}.${minor}.${patch}-prerelease${increment}" + change_path: "src/my-service" + namespace: complib + bump_each_commit: false + search_commit_body: false + user_format_type: "csv" + - name: test + run: echo "$version" diff --git a/client_s2/build_deb.sh b/client_s2/build_deb.sh index 73c6d7b..db517c5 100755 --- a/client_s2/build_deb.sh +++ b/client_s2/build_deb.sh @@ -1,6 +1,6 @@ ##!/usr/bin/zsh export PYTHONDONTWRITEBYTECODE=1 -export VERSION="1.0.0-0" +export VERSION="1.0.0" # BE CAREFUL TO NOT BUILD IN A PYTHON VENV!