Skip to content

Commit 14c6e81

Browse files
.github/workflows/dnmtools_distcheck_ubuntu.yml: making artiface for source archive
1 parent 851aed6 commit 14c6e81

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/dnmtools_distcheck_ubuntu.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ jobs:
1414
- uses: actions/checkout@v4
1515
with:
1616
submodules: recursive
17+
- name: Get version number
18+
id: vn
19+
run: |
20+
awk '/AC_INIT/ {print "vn="$2}' configure.ac | sed "s/\[//; s/\]//; s/,//" >> "$GITHUB_OUTPUT"
21+
env:
22+
GH_TOKEN: ${{ github.token }}
1723
- name: Update packages
1824
run: sudo apt-get update
1925
- name: Install dependencies
@@ -22,5 +28,12 @@ jobs:
2228
run: ./autogen.sh
2329
- name: configure
2430
run: ./configure
31+
- name: Generate the source archive
32+
run: make dist
33+
- name: Upload the archive
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: dnmtools-${{ steps.vn.outputs.vn }}.tar.gz
37+
path: dnmtools-${{ steps.vn.outputs.vn }}.tar.gz
2538
- name: make distcheck
2639
run: make -j4 distcheck

0 commit comments

Comments
 (0)