Release artifacts #31
Workflow file for this run
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
# Builds & attaches release artifacts to a newly published release | |
name: Make release artifacts | |
on: | |
release: | |
types: [published] | |
jobs: | |
tarball: | |
runs-on: ubuntu-24.04 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
TAG_NAME: ${{ github.event.release.tag_name }} | |
steps: | |
- name: Checkout release tag | |
uses: actions/checkout@v4 | |
- name: Build image | |
run: | | |
podman build --target base --tag rpm -f tests/Dockerfile . | |
- name: Create tarball | |
run: | | |
mkdir _build | |
podman run -v $PWD:/srv:z --workdir /srv/_build -t --rm rpm sh -c \ | |
"cmake -DENABLE_TESTSUITE=OFF -DWITH_DOXYGEN=ON .. && make dist" | |
cd _build/ | |
TARBALL=$(ls -1 *.tar.bz2) | |
echo "TARBALL=$TARBALL" >> "$GITHUB_ENV" | |
- name: Create & dump checksum file | |
working-directory: _build | |
run: | | |
sha256sum $TARBALL > sha256sum | |
cat sha256sum | |
- name: Upload tarball & checksum file | |
working-directory: _build | |
run: | | |
gh release upload $TAG_NAME $TARBALL sha256sum |