Skip to content

Commit c53af64

Browse files
committed
wip: github action to create release tarballs
1 parent 157ee34 commit c53af64

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/release.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout source code
14+
uses: actions/checkout@v3
15+
16+
- name: Set up dependencies
17+
run: |
18+
sudo apt-get update
19+
sudo apt-get install -y autoconf automake libtool
20+
21+
- name: Run autoreconf
22+
run: autoreconf --install
23+
24+
- name: Configure
25+
run: ./configure
26+
27+
- name: Make
28+
run: make
29+
30+
- name: Generate tarball
31+
run: |
32+
make dist
33+
tarball_name=$(ls *.tar.gz)
34+
mkdir -p artifacts
35+
mv $tarball_name artifacts/
36+
37+
- name: Upload tarball
38+
uses: actions/upload-artifact@v3
39+
with:
40+
name: source-tarball
41+
path: artifacts/*.tar.gz
42+

0 commit comments

Comments
 (0)