Skip to content

release

release #6

Workflow file for this run

name: build RPM
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: |
sudo apt-get install -y alien
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build RPM
run: |
python3 getrelease.py
# set the filename to env variable
export RPM_FILE=$(ls *.rpm)
- name: Upload RPM
uses: actions/upload-artifact@v3
with:
path: ./*.rpm
- name: Release RPM
uses: softprops/action-gh-release@v3
with:
files: ${{ env.RPM_FILE }}
prerelease: true