Skip to content

Commit

Permalink
add explicit github release action
Browse files Browse the repository at this point in the history
This was necessary because the default tarball preparation did not
include commit_hash.h
  • Loading branch information
ksedgwic committed Oct 2, 2024
1 parent afaed81 commit 03e43e9
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/release.yml
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

0 comments on commit 03e43e9

Please sign in to comment.