diff --git a/.github/workflows/build-rpm.yml b/.github/workflows/build-rpm.yml index 6d13952..fc6cbbf 100644 --- a/.github/workflows/build-rpm.yml +++ b/.github/workflows/build-rpm.yml @@ -2,21 +2,19 @@ name: Build RPM Package on: push: - branches: [ workflows ] - if: github.ref_type == 'tag' - tags: '*.*.*' - pull_request: - branches: [ workflows ] - if: github.ref_type == 'tag' - tags: '*.*.*' + tags: + - v[0-9]+.[0-9]+.[0-9]+ jobs: build-rpm: + name: Build and upload RPM packages runs-on: ubuntu-latest container: image: fedora:latest steps: + - uses: actions/checkout@v4 + - name: install RPM build tools run: | dnf -y install \ @@ -32,9 +30,6 @@ jobs: run: | rpmdev-setuptree - - name: Checkout source code - uses: actions/checkout@v3 - - name: Create source tarball run: | cmake -B build -S .