-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This was necessary because the default tarball preparation did not include commit_hash.h
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Create Release Tarballs | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up build tools | ||
run: sudo apt-get install -y build-essential autoconf automake libtool zip | ||
|
||
- name: Configure the project | ||
run: ./configure | ||
|
||
- name: Build the project | ||
run: make | ||
|
||
- name: Create .tar.gz source tarball | ||
run: make dist | ||
|
||
- name: Create .zip source tarball | ||
run: make dist-zip | ||
|
||
- name: List generated files | ||
run: ls -lah | ||
|
||
- name: Upload .tar.gz release asset | ||
uses: actions/upload-release-asset@v1 | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ./clboss-*.tar.gz | ||
asset_name: clboss-${{ github.event.release.tag_name }}.tar.gz | ||
asset_content_type: application/gzip | ||
|
||
- name: Upload .zip release asset | ||
uses: actions/upload-release-asset@v1 | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ./clboss-*.zip | ||
asset_name: clboss-${{ github.event.release.tag_name }}.zip | ||
asset_content_type: application/zip |