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: /.*/