diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ee9a2e9..1abe0b4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,9 +8,6 @@ on: jobs: release-ci: runs-on: ubuntu-latest - outputs: - tag: ${{ steps.get_metadata.outputs.tag }} - to_release: ${{ steps.newtag.outputs.to_release }} steps: - name: Local checkout @@ -51,10 +48,8 @@ jobs: && git push origin ${{ steps.get_metadata.outputs.tag }} \ || exit 0 - build-fedora: - needs: release-ci - uses: ./.github/workflows/fedora.yml - with: - containers: "['fedora:latest', 'fedora:41']" - to_release: ${{ needs.release-ci.outputs.to_release }} - tag: ${{ needs.release-ci.outputs.tag }} + - name: Create and publish GitHub release + if: steps.newtag.outputs.to_release == 1 + uses: softprops/action-gh-release@v2 + with: + tag_name: ${{ steps.get_metadata.outputs.tag }} diff --git a/.github/workflows/fedora.yml b/.github/workflows/fedora.yml deleted file mode 100644 index 2c318a8..0000000 --- a/.github/workflows/fedora.yml +++ /dev/null @@ -1,72 +0,0 @@ -on: - workflow_call: - inputs: - containers: - default: "['fedora:latest']" - required: false - type: string - tag: - required: true - type: string - to_release: - default: "0" - required: false - type: string - -defaults: - run: - shell: bash - -jobs: - build: - strategy: - max-parallel: 2 - matrix: - image: ${{ fromJson(inputs.containers) }} - runs-on: ubuntu-latest - container: ${{ matrix.image }} - - steps: - - name: Prepare - local checkout - uses: actions/checkout@v4 - - - name: Prepare - install build dependencies - if: inputs.to_release == 1 - run: | - dnf -y install \ - cmake \ - gcc \ - gcc-c++ \ - git \ - openssl \ - rpm-build \ - rpmdevtools \ - tar - - - name: Prepare - setup RPM build tree - if: inputs.to_release == 1 - run: | - rpmdev-setuptree - - - name: Prepare - configure the source - if: inputs.to_release == 1 - run: | - cmake -B $(pwd)/build -S $(pwd) - - - name: Build - create source tarball and SRPM package - if: inputs.to_release == 1 - run: | - cmake --build $(pwd)/build --target srpm - - - name: Build - create RPM package - if: inputs.to_release == 1 - run: | - cmake --build $(pwd)/build --target rpms - - - name: Publish - create GitHub release - uses: softprops/action-gh-release@v2 - if: inputs.to_release == 1 - with: - tag_name: ${{ inputs.tag }} - files: | - dist/*.rpm