From 51426d166d77deeb1db25dede2da2f3560349971 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Mon, 17 Nov 2025 20:08:02 -0500 Subject: [PATCH] CircleCI version of Cut Release --- .circleci/config.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..8203540 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,42 @@ +version: 2.1 + +jobs: + cut-release: + docker: + - image: cimg/python:3.10 + steps: + - checkout + - run: + name: "Checkout submodules" + command: | + git submodule sync + git submodule update --init + - run: + name: "Extract version" + command: echo "export VERSION=${CIRCLE_TAG#offscreen-}" >> $BASH_ENV + - run: + name: "Create VERSION file" + command: | + source $BASH_ENV + echo $VERSION > VERSION + - run: + name: "Install git-archive-all" + command: pip install git-archive-all + - run: + name: "Create source tarball" + command: | + source $BASH_ENV + git-archive-all --force-submodules --prefix=offscreen-${VERSION}/ offscreen-${VERSION}.tar.gz + - store_artifacts: + path: offscreen-${VERSION}.tar.gz + +workflows: + version: 2 + release: + jobs: + - cut-release: + filters: + tags: + only: /^offscreen-.*/ + branches: + ignore: /.*/