Skip to content

Commit 8f2fa7f

Browse files
authored
Merge pull request #4 from kintel/actions
Added cut_release.yml
2 parents 140bf4b + 2b5376a commit 8f2fa7f

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/cut_release.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Cut Release and Create Source Tarball
2+
3+
on:
4+
push:
5+
tags:
6+
- 'offscreen-*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v5
14+
with:
15+
submodules: 'true'
16+
17+
- name: Extract version
18+
id: get_version
19+
run: echo "VERSION=${GITHUB_REF#refs/tags/offscreen-}" >> $GITHUB_ENV
20+
21+
- name: Create VERSION file
22+
run: echo ${{ env.VERSION }} > VERSION
23+
24+
- name: Set up Python
25+
uses: actions/setup-python@v6
26+
with:
27+
python-version: '3.x'
28+
29+
- name: Install git-archive-all
30+
run: pip install git-archive-all
31+
32+
- name: Create source tarball
33+
run: git-archive-all --force-submodules --prefix=offscreen-${{ env.VERSION }}/ offscreen-${{ env.VERSION }}.tar.gz
34+
35+
- name: Upload artifact
36+
uses: actions/upload-artifact@v5
37+
with:
38+
name: source-tarball
39+
path: offscreen-${{ env.VERSION }}.tar.gz

0 commit comments

Comments
 (0)