File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments