Skip to content

Commit 8969aa6

Browse files
.github/workflows/dnmtools_release_linux.yml: attempting to get the archive name mostly right without the zip
1 parent 59e83af commit 8969aa6

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/dnmtools_release_linux.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ jobs:
1919
- uses: actions/checkout@v4
2020
with:
2121
submodules: recursive
22+
- name: Get version number
23+
id: get-vn
24+
run: |
25+
awk '/AC_INIT/ {print "vn="$2}' configure.ac | sed "s/\[//; s/\]//; s/,//" >> "$GITHUB_OUTPUT"
26+
env:
27+
GH_TOKEN: ${{ github.token }}
2228
- name: Configure and build
2329
env:
2430
SCRIPT: |
@@ -54,17 +60,12 @@ jobs:
5460
autoreconf -i && \
5561
mkdir build && cd build && \
5662
../configure --with-libdeflate && \
57-
make -j4 LDFLAGS="-static-libgcc -static-libstdc++ -s"
63+
make -j4 LDFLAGS="-static-libgcc -static-libstdc++ -s" && \
64+
tar -cf dnmtools-${{ steps.get-vn.outputs.vn }}-Linux.tar.gz dnmtools
5865
run: |
5966
docker exec build-container bash -c "$SCRIPT"
60-
- name: Get version number
61-
id: get-vn
62-
run: |
63-
awk '/AC_INIT/ {print "vn="$2}' configure.ac | sed "s/\[//; s/\]//; s/,//" >> "$GITHUB_OUTPUT"
64-
env:
65-
GH_TOKEN: ${{ github.token }}
6667
- name: Upload the binary
6768
uses: actions/upload-artifact@v4
6869
with:
69-
name: dnmtools-${{ steps.get-vn.outputs.vn }}-Linux
70-
path: build/dnmtools
70+
name: dnmtools-${{ steps.get-vn.outputs.vn }}-Linux.tar.gz
71+
path: build/dnmtools-${{ steps.get-vn.outputs.vn }}-Linux.tar.gz

0 commit comments

Comments
 (0)