Skip to content

Commit 03e43e9

Browse files
committed
add explicit github release action
This was necessary because the default tarball preparation did not include commit_hash.h
1 parent afaed81 commit 03e43e9

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/release.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Create Release Tarballs
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout the code
13+
uses: actions/checkout@v3
14+
15+
- name: Set up build tools
16+
run: sudo apt-get install -y build-essential autoconf automake libtool zip
17+
18+
- name: Configure the project
19+
run: ./configure
20+
21+
- name: Build the project
22+
run: make
23+
24+
- name: Create .tar.gz source tarball
25+
run: make dist
26+
27+
- name: Create .zip source tarball
28+
run: make dist-zip
29+
30+
- name: List generated files
31+
run: ls -lah
32+
33+
- name: Upload .tar.gz release asset
34+
uses: actions/upload-release-asset@v1
35+
with:
36+
upload_url: ${{ github.event.release.upload_url }}
37+
asset_path: ./clboss-*.tar.gz
38+
asset_name: clboss-${{ github.event.release.tag_name }}.tar.gz
39+
asset_content_type: application/gzip
40+
41+
- name: Upload .zip release asset
42+
uses: actions/upload-release-asset@v1
43+
with:
44+
upload_url: ${{ github.event.release.upload_url }}
45+
asset_path: ./clboss-*.zip
46+
asset_name: clboss-${{ github.event.release.tag_name }}.zip
47+
asset_content_type: application/zip

0 commit comments

Comments
 (0)