Create Release Artifacts #11
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
name: Create Release Artifacts | |
on: | |
- workflow_dispatch | |
jobs: | |
artifacts: | |
runs-on: ubuntu-latest | |
container: | |
image: fedora:latest | |
timeout-minutes: 10 | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v4 | |
- name: install python modules to create wheel | |
run: | | |
dnf install -y python3-setuptools python3-wheel | |
- name: create Python wheel and sdist | |
run: | | |
python3 setup.py sdist bdist_wheel | |
- name: install rpmbuild | |
run: | | |
dnf install -y /usr/bin/rpmbuild | |
- name: create src.rpm | |
run: | | |
set -x | |
cd rpm | |
mkdir SOURCES | |
cp -a ../dist/*.tar.gz SOURCES/ | |
mv mailqueue-runner{.conf,.logrotate} ./SOURCES/ | |
/usr/bin/rpmbuild --define "_topdir `pwd`" -bs *.spec | |
mv SRPMS/*.src.rpm ../dist/ | |
- name: upload release artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "release-artifacts" | |
path: dist/* | |
if-no-files-found: error |