Skip to content

Commit 96ac674

Browse files
committed
ci: create release tarball before building library
1 parent dc74d7d commit 96ac674

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,21 @@ jobs:
4848
with:
4949
path: bash
5050

51-
- name: Copy release files
51+
- name: Create release tarball
5252
run: |
5353
# remove unused files
5454
rm -r bash/{doc,examples,tests,po}
5555
56-
# copy release files
56+
# copy non-hidden files
5757
mkdir ${RELEASE}
5858
cp -a bash/* ${RELEASE}
5959
60+
# create tarball
61+
tar -c -I "xz -9 -T0" -f ${RELEASE}.tar.xz ${RELEASE}
6062
6163
- name: Build and install
6264
run: |
63-
# copy release files
64-
cp -a ${RELEASE} ${RELEASE}-test
65-
cd ${RELEASE}-test
65+
cd ${RELEASE}
6666
6767
# configure using required scallop options
6868
./configure-scallop
@@ -79,9 +79,6 @@ jobs:
7979
pkg-config --modversion scallop
8080
pkg-config --exact-version ${VERSION} scallop
8181
82-
- name: Create tarball
83-
run: tar -c -I "xz -9 -T0" -f ${RELEASE}.tar.xz ${RELEASE}
84-
8582
- name: Upload artifact
8683
uses: actions/upload-artifact@v6
8784
with:

0 commit comments

Comments
 (0)