Skip to content

Commit 51426d1

Browse files
committed
CircleCI version of Cut Release
1 parent d9cafd0 commit 51426d1

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.circleci/config.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
version: 2.1
2+
3+
jobs:
4+
cut-release:
5+
docker:
6+
- image: cimg/python:3.10
7+
steps:
8+
- checkout
9+
- run:
10+
name: "Checkout submodules"
11+
command: |
12+
git submodule sync
13+
git submodule update --init
14+
- run:
15+
name: "Extract version"
16+
command: echo "export VERSION=${CIRCLE_TAG#offscreen-}" >> $BASH_ENV
17+
- run:
18+
name: "Create VERSION file"
19+
command: |
20+
source $BASH_ENV
21+
echo $VERSION > VERSION
22+
- run:
23+
name: "Install git-archive-all"
24+
command: pip install git-archive-all
25+
- run:
26+
name: "Create source tarball"
27+
command: |
28+
source $BASH_ENV
29+
git-archive-all --force-submodules --prefix=offscreen-${VERSION}/ offscreen-${VERSION}.tar.gz
30+
- store_artifacts:
31+
path: offscreen-${VERSION}.tar.gz
32+
33+
workflows:
34+
version: 2
35+
release:
36+
jobs:
37+
- cut-release:
38+
filters:
39+
tags:
40+
only: /^offscreen-.*/
41+
branches:
42+
ignore: /.*/

0 commit comments

Comments
 (0)