diff --git a/.github/workflows/release_dimclient.yml b/.github/workflows/release_dimclient.yml index c04adbc..57988fa 100644 --- a/.github/workflows/release_dimclient.yml +++ b/.github/workflows/release_dimclient.yml @@ -12,9 +12,8 @@ jobs: runs-on: ubuntu-latest outputs: version: ${{ steps.version.outputs.version }} - steps: - - run: echo "::set-output name=version::$(echo "$_REF" | cut -d'-' -f2-)" + - run: 'echo "version=${_REF#*-}" >> $GITHUB_OUTPUT' id: version shell: bash env: @@ -28,208 +27,10 @@ jobs: name: dimclient-src-${{ steps.version.outputs.version }}.tar.gz path: dimclient-src-${{ steps.version.outputs.version }}.tar.gz - el8: - runs-on: ubuntu-latest - needs: build - container: - image: oraclelinux:8 - env: - _VERSION: ${{ needs.build.outputs.version }} - steps: - - run: /bin/dnf install --assumeyes python3-devel python3 rpm-build python3-dns tar gzip git - - uses: actions/checkout@v4 - - run: mkdir -p ${HOME}/rpmbuild/SPECS - - run: mkdir -p ${HOME}/rpmbuild/SOURCES - - uses: actions/download-artifact@v4 - with: - name: dimclient-src-${{ needs.build.outputs.version }}.tar.gz - path: ~/rpmbuild/SOURCES/ - - shell: sh - run: | - cat < ${HOME}/rpmbuild/SPECS/dimclient.spec - Name: python3-dimclient - Version: ${_VERSION} - Release: 1.el8 - Summary: DNS and IP management python library - - Group: application/system - License: MIT - - Source0: dimclient-src-%{version}.tar.gz - BuildRequires: python3-devel - Requires: python3 - - # don't strip debug symbols, else it will all come crashing down - %define debug_package %{nil} - %define __strip /bin/true - - %description - DNS and IP management - - %prep - %autosetup -p1 -n dimclient-%{version} - - %build - %py3_build - - %install - %py3_install - - %files - %{python3_sitelib}/* - EOF - - run: rpmbuild -ba ${HOME}/rpmbuild/SPECS/dimclient.spec - - uses: actions/upload-artifact@v4 - with: - name: python3-dimclient-${{ needs.build.outputs.version }}-1.el8.x86_64.rpm - path: ~/rpmbuild/RPMS/x86_64/python3-dimclient-${{ needs.build.outputs.version }}-1.el8.x86_64.rpm - - el9: - runs-on: ubuntu-latest - needs: build - container: - image: oraclelinux:9 - env: - _VERSION: ${{ needs.build.outputs.version }} - steps: - - run: /bin/dnf install --assumeyes python3-devel python3 rpm-build python3-dns tar gzip git - - uses: actions/checkout@v4 - - run: mkdir -p ${HOME}/rpmbuild/SPECS - - run: mkdir -p ${HOME}/rpmbuild/SOURCES - - uses: actions/download-artifact@v4 - with: - name: dimclient-src-${{ needs.build.outputs.version }}.tar.gz - path: ~/rpmbuild/SOURCES/ - - shell: sh - run: | - cat < ${HOME}/rpmbuild/SPECS/dimclient.spec - Name: python3-dimclient - Version: ${_VERSION} - Release: 1.el9 - Summary: DNS and IP management python library - - Group: application/system - License: MIT - - Source0: dimclient-src-%{version}.tar.gz - BuildRequires: python3-devel - Requires: python3 - - # don't strip debug symbols, else it will all come crashing down - %define debug_package %{nil} - %define __strip /bin/true - - %description - DNS and IP management - - %prep - %autosetup -p1 -n dimclient-%{version} - - %build - %py3_build - - %install - %py3_install - - %files - %{python3_sitelib}/* - EOF - - run: rpmbuild -ba ${HOME}/rpmbuild/SPECS/dimclient.spec - - uses: actions/upload-artifact@v4 - with: - name: python3-dimclient-${{ needs.build.outputs.version }}-1.el9.x86_64.rpm - path: ~/rpmbuild/RPMS/x86_64/python3-dimclient-${{ needs.build.outputs.version }}-1.el9.x86_64.rpm - - fedora: - runs-on: ubuntu-latest - needs: build - strategy: - matrix: - os: [40] - container: - image: fedora:${{ matrix.os }} - env: - _VERSION: ${{ needs.build.outputs.version }} - steps: - - uses: actions/checkout@v4 - - run: mkdir -p ${HOME}/rpmbuild/SPECS - - run: mkdir -p ${HOME}/rpmbuild/SOURCES - - run: /bin/dnf install --assumeyes python3-devel python3 rpm-build python3-dns python3-setuptools - - uses: actions/download-artifact@v4 - with: - name: dimclient-src-${{ needs.build.outputs.version }}.tar.gz - path: ~/rpmbuild/SOURCES/ - - shell: sh - run: | - cat < ${HOME}/rpmbuild/SPECS/dimclient.spec - Name: python3-dimclient - Version: ${_VERSION} - Release: 1.fc${{ matrix.os }} - Summary: DNS and IP management python library - - Group: application/system - License: MIT - - Source0: dimclient-src-%{version}.tar.gz - BuildRequires: python3-devel - Requires: python3 - - # don't strip debug symbols, else it will all come crashing down - %define debug_package %{nil} - %define __strip /bin/true - - %description - DNS and IP management - - %prep - %autosetup -p1 -n dimclient-%{version} - - %build - %py3_build - - %install - %py3_install - - %files - %{python3_sitelib}/* - EOF - - run: rpmbuild -ba ${HOME}/rpmbuild/SPECS/dimclient.spec - - uses: actions/upload-artifact@v4 - with: - name: python3-dimclient-${{ needs.build.outputs.version }}-1.fc${{ matrix.os }}.x86_64.rpm - path: ~/rpmbuild/RPMS/x86_64/python3-dimclient-${{ needs.build.outputs.version }}-1.fc${{ matrix.os }}.x86_64.rpm - - debian: - runs-on: ubuntu-latest - needs: build - container: - image: debian:12 - env: - _VERSION: ${{ needs.build.outputs.version }} - steps: - - uses: actions/checkout@v4 - - run: apt-get update - - run: apt-get install --yes build-essential python3 python3-dnspython bash-completion dh-python python3-setuptools python3-all debhelper devscripts - - run: cp -vr packaging/debian/dimclient/* dimclient/ - - run: dch --create --package dimclient --newversion ${{ needs.build.outputs.version }} --distribution unstable 'release update' - working-directory: dimclient - env: - DEBMAIL: unknown - - run: dpkg-buildpackage -us -uc -b - working-directory: dimclient - - uses: actions/upload-artifact@v4 - with: - name: python3-dimclient_${{ needs.build.outputs.version }}_all.deb - path: python3-dimclient_${{ needs.build.outputs.version }}_all.deb - create_release: runs-on: ubuntu-latest needs: - build - - debian - - el8 - - el9 - - fedora steps: - uses: actions/checkout@v4 - uses: actions/create-release@v1 @@ -244,18 +45,6 @@ jobs: - uses: actions/download-artifact@v4 with: name: dimclient-src-${{ needs.build.outputs.version }}.tar.gz - - uses: actions/download-artifact@v4 - with: - name: python3-dimclient-${{ needs.build.outputs.version }}-1.el8.x86_64.rpm - - uses: actions/download-artifact@v4 - with: - name: python3-dimclient-${{ needs.build.outputs.version }}-1.el9.x86_64.rpm - - uses: actions/download-artifact@v4 - with: - name: python3-dimclient-${{ needs.build.outputs.version }}-1.fc40.x86_64.rpm - - uses: actions/download-artifact@v4 - with: - name: python3-dimclient_${{ needs.build.outputs.version }}_all.deb - uses: actions/upload-release-asset@v1 env: @@ -265,35 +54,4 @@ jobs: asset_path: dimclient-src-${{ needs.build.outputs.version }}.tar.gz asset_name: dimclient-src-${{ needs.build.outputs.version }}.tar.gz asset_content_type: application/zip - - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: python3-dimclient_${{ needs.build.outputs.version }}_all.deb - asset_name: python3-dimclient_${{ needs.build.outputs.version }}_all.deb - asset_content_type: application/vnd.debian.binary-package - - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: python3-dimclient-${{ needs.build.outputs.version }}-1.el8.x86_64.rpm - asset_name: python3-dimclient-${{ needs.build.outputs.version }}-1.el8.x86_64.rpm - asset_content_type: application/octet-stream - - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: python3-dimclient-${{ needs.build.outputs.version }}-1.el9.x86_64.rpm - asset_name: python3-dimclient-${{ needs.build.outputs.version }}-1.el9.x86_64.rpm - asset_content_type: application/octet-stream - - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: python3-dimclient-${{ needs.build.outputs.version }}-1.fc40.x86_64.rpm - asset_name: python3-dimclient-${{ needs.build.outputs.version }}-1.fc40.x86_64.rpm - asset_content_type: application/octet-stream + diff --git a/.github/workflows/release_ndcli.yml b/.github/workflows/release_ndcli.yml index 27250d2..11a7694 100644 --- a/.github/workflows/release_ndcli.yml +++ b/.github/workflows/release_ndcli.yml @@ -11,17 +11,19 @@ jobs: build: runs-on: ubuntu-latest container: - image: ubuntu:latest + image: oraclelinux:9 outputs: version: ${{ steps.version.outputs.version }} - dimclient: ${{ steps.dimclient.outputs.version }} - env: - DEBIAN_FRONTEND: noninteractive steps: - - run: apt-get update - - run: apt-get install --yes build-essential python3 python3-dnspython bash-completion dh-python python3-setuptools python3-all debhelper devscripts python3-sphinx make git - - run: echo "::set-output name=version::$(echo "$_REF" | cut -d'-' -f2-)" + - name: Activate CRB for dependencies + run: /bin/dnf config-manager --enable ol9_codeready_builder + - name: Add DIM repository from OBS for dimclient + run: /bin/dnf config-manager --add-repo https://download.opensuse.org/repositories/home:/zeromind:/dim/RockyLinux_9/home:zeromind:dim.repo + working-directory: /etc/yum.repos.d + - name: Install dependencies + run: /bin/dnf install --assumeyes python3-sphinx python3-dns python3-dimclient + - run: 'echo "version=${_REF#*-}" >> $GITHUB_OUTPUT' id: version shell: bash env: @@ -29,17 +31,6 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - run: | - git config --global --add safe.directory "/__w/dim/dim" - echo "::set-output name=version::$( git tag | grep dimclient | sort | tail -1 | cut -d'-' -f2- )" - id: dimclient - shell: bash - - run: | - curl --location "https://github.com/${{ github.repository }}/releases/download/dimclient-${_DIMCLIENT}/python3-dimclient_${_DIMCLIENT}_all.deb" > ./python3-dimclient_${_DIMCLIENT}_all.deb - dpkg -i ./python3-dimclient_${_DIMCLIENT}_all.deb - apt-get install -fy - env: - _DIMCLIENT: "1.0.4" - run: python3 gendoc.py > gendoc.txt working-directory: ndcli/doc - run: sphinx-build -b man doc doc/_build/man @@ -51,283 +42,11 @@ jobs: with: name: ndcli-src-${{ steps.version.outputs.version }}.tar.gz path: ndcli-src-${{ steps.version.outputs.version }}.tar.gz - - run: echo "${_version} - ${_dimclient}" - env: - _dimclient: ${{ steps.dimclient.outputs.version }} - _version: ${{ steps.version.outputs.version }} - - el8: - runs-on: ubuntu-latest - needs: build - container: - image: oraclelinux:8 - env: - _VERSION: ${{ needs.build.outputs.version }} - _DIMCLIENT: ${{ needs.build.outputs.dimclient }} - steps: - - run: /bin/dnf install --assumeyes epel-release - - run: /bin/dnf install --assumeyes python3-devel python3 rpm-build python3-dns python3-dateutil tar gzip git - - uses: actions/checkout@v4 - - run: mkdir -p ${HOME}/rpmbuild/SPECS - - run: mkdir -p ${HOME}/rpmbuild/SOURCES - - run: | - curl --location "https://github.com/${{ github.repository }}/releases/download/dimclient-${_DIMCLIENT}/python3-dimclient-${_DIMCLIENT}-1.el8.x86_64.rpm" > ./python3-dimclient-${_DIMCLIENT}-1.el8.x86_64.rpm - rpm -i ./python3-dimclient-${_DIMCLIENT}-1.el8.x86_64.rpm - shell: sh - - uses: actions/download-artifact@v4 - with: - name: ndcli-src-${{ needs.build.outputs.version }}.tar.gz - path: ~/rpmbuild/SOURCES/ - - shell: sh - run: | - cat < ${HOME}/rpmbuild/SPECS/ndcli.spec - Name: python3-ndcli - Version: ${_VERSION} - Release: 1.el8 - Summary: DNS and IP management - - Group: application/system - License: MIT - - Source0: ndcli-src-%{version}.tar.gz - BuildRequires: python3-devel - BuildRequires: python3-dimclient - BuildRequires: python3-dateutil - BuildRequires: python3-dns - Requires: python3-dimclient - Requires: python3-dateutil - Requires: python3-dns - Requires: python3 - Suggests: bash-completion - - # don't strip debug symbols, else it will all come crashing down - %define debug_package %{nil} - %define __strip /bin/true - - %description - DNS and IP management - - %prep - %autosetup -p1 -n ndcli-%{version} - - %build - %py3_build - - %install - %py3_install - mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d - install -m 644 -T bash_completion.d/ndcli %{buildroot}%{_sysconfdir}/bash_completion.d/ndcli - mkdir -p %{buildroot}%{_mandir}/man1 - gzip doc/_build/man/ndcli.1 - install -m 644 -T doc/_build/man/ndcli.1.gz %{buildroot}%{_mandir}/man1/ndcli.1.gz - - %files - %{python3_sitelib}/* - %{_bindir}/* - %{_sysconfdir}/bash_completion.d/* - %{_mandir}/man1/* - EOF - - run: rpmbuild -ba ${HOME}/rpmbuild/SPECS/ndcli.spec - - uses: actions/upload-artifact@v4 - with: - name: python3-ndcli-${{ needs.build.outputs.version }}-1.el8.x86_64.rpm - path: ~/rpmbuild/RPMS/x86_64/python3-ndcli-${{ needs.build.outputs.version }}-1.el8.x86_64.rpm - - el9: - runs-on: ubuntu-latest - needs: build - container: - image: oraclelinux:9 - env: - _VERSION: ${{ needs.build.outputs.version }} - _DIMCLIENT: ${{ needs.build.outputs.dimclient }} - steps: - - run: /bin/dnf install --assumeyes epel-release - - run: /bin/dnf install --assumeyes python3-devel python3 rpm-build python3-dns python3-dateutil tar gzip git - - uses: actions/checkout@v4 - - run: mkdir -p ${HOME}/rpmbuild/SPECS - - run: mkdir -p ${HOME}/rpmbuild/SOURCES - - run: | - curl --location "https://github.com/${{ github.repository }}/releases/download/dimclient-${_DIMCLIENT}/python3-dimclient-${_DIMCLIENT}-1.el9.x86_64.rpm" > ./python3-dimclient-${_DIMCLIENT}-1.el9.x86_64.rpm - rpm -i ./python3-dimclient-${_DIMCLIENT}-1.el9.x86_64.rpm - shell: sh - - uses: actions/download-artifact@v4 - with: - name: ndcli-src-${{ needs.build.outputs.version }}.tar.gz - path: ~/rpmbuild/SOURCES/ - - shell: sh - run: | - cat < ${HOME}/rpmbuild/SPECS/ndcli.spec - Name: python3-ndcli - Version: ${_VERSION} - Release: 1.el9 - Summary: DNS and IP management - - Group: application/system - License: MIT - - Source0: ndcli-src-%{version}.tar.gz - BuildRequires: python3-devel - BuildRequires: python3-dimclient - BuildRequires: python3-dateutil - BuildRequires: python3-dns - Requires: python3-dimclient - Requires: python3-dateutil - Requires: python3-dns - Requires: python3 - Suggests: bash-completion - - # don't strip debug symbols, else it will all come crashing down - %define debug_package %{nil} - %define __strip /bin/true - - %description - DNS and IP management - - %prep - %autosetup -p1 -n ndcli-%{version} - - %build - %py3_build - - %install - %py3_install - mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d - install -m 644 -T bash_completion.d/ndcli %{buildroot}%{_sysconfdir}/bash_completion.d/ndcli - mkdir -p %{buildroot}%{_mandir}/man1 - gzip doc/_build/man/ndcli.1 - install -m 644 -T doc/_build/man/ndcli.1.gz %{buildroot}%{_mandir}/man1/ndcli.1.gz - - %files - %{python3_sitelib}/* - %{_bindir}/* - %{_sysconfdir}/bash_completion.d/* - %{_mandir}/man1/* - EOF - - run: rpmbuild -ba ${HOME}/rpmbuild/SPECS/ndcli.spec - - uses: actions/upload-artifact@v4 - with: - name: python3-ndcli-${{ needs.build.outputs.version }}-1.el9.x86_64.rpm - path: ~/rpmbuild/RPMS/x86_64/python3-ndcli-${{ needs.build.outputs.version }}-1.el9.x86_64.rpm - - fedora: - runs-on: ubuntu-latest - needs: build - strategy: - matrix: - os: [40] - container: - image: fedora:${{ matrix.os }} - env: - _VERSION: ${{ needs.build.outputs.version }} - _DIMCLIENT: ${{ needs.build.outputs.dimclient }} - steps: - - uses: actions/checkout@v4 - - run: mkdir -p ${HOME}/rpmbuild/SPECS - - run: mkdir -p ${HOME}/rpmbuild/SOURCES - - run: /bin/dnf install --assumeyes python3-devel python3 rpm-build python3-dns python3-dateutil curl python3-setuptools - - run: | - curl --location "https://github.com/${{ github.repository }}/releases/download/dimclient-${_DIMCLIENT}/python3-dimclient-${_DIMCLIENT}-1.fc${{ matrix.os }}.x86_64.rpm" > ./python3-dimclient-${_DIMCLIENT}-1.fc${{ matrix.os }}.x86_64.rpm - rpm -i ./python3-dimclient-${_DIMCLIENT}-1.fc${{ matrix.os }}.x86_64.rpm - shell: sh - - uses: actions/download-artifact@v4 - with: - name: ndcli-src-${{ needs.build.outputs.version }}.tar.gz - path: ~/rpmbuild/SOURCES/ - - shell: sh - run: | - cat < ${HOME}/rpmbuild/SPECS/ndcli.spec - Name: python3-ndcli - Version: ${_VERSION} - Release: 1.fc${{ matrix.os }} - Summary: DNS and IP management - - Group: application/system - License: MIT - - Source0: ndcli-src-%{version}.tar.gz - BuildRequires: python3-devel - BuildRequires: python3-dimclient - BuildRequires: python3-dns - BuildRequires: python3-dateutil - Requires: python3-dateutil - Requires: python3-dimclient - Requires: python3-dns - Requires: python3 - - # don't strip debug symbols, else it will all come crashing down - %define debug_package %{nil} - %define __strip /bin/true - - %description - DNS and IP management - - %prep - %autosetup -p1 -n ndcli-%{version} - - %build - %py3_build - - %install - %py3_install - mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d - install -m 644 -T bash_completion.d/ndcli %{buildroot}%{_sysconfdir}/bash_completion.d/ndcli - mkdir -p %{buildroot}%{_mandir}/man1 - gzip doc/_build/man/ndcli.1 - install -m 644 -T doc/_build/man/ndcli.1.gz %{buildroot}%{_mandir}/man1/ndcli.1.gz - - %files - %{python3_sitelib}/* - %{_bindir}/* - %{_sysconfdir}/bash_completion.d/* - %{_mandir}/man1/* - EOF - - run: rpmbuild -ba ${HOME}/rpmbuild/SPECS/ndcli.spec - - uses: actions/upload-artifact@v4 - with: - name: python3-ndcli-${{ needs.build.outputs.version }}-1.fc${{ matrix.os }}.x86_64.rpm - path: ~/rpmbuild/RPMS/x86_64/python3-ndcli-${{ needs.build.outputs.version }}-1.fc${{ matrix.os }}.x86_64.rpm - - debian: - runs-on: ubuntu-latest - needs: build - container: - image: debian:12 - env: - _VERSION: ${{ needs.build.outputs.version }} - _DIMCLIENT: ${{ needs.build.outputs.dimclient }} - steps: - - uses: actions/checkout@v4 - - run: apt-get update - - run: apt-get install --yes build-essential python3 python3-dnspython bash-completion dh-python python3-setuptools python3-all debhelper devscripts python3-sphinx - - run: | - curl --location "https://github.com/${{ github.repository }}/releases/download/dimclient-${_DIMCLIENT}/python3-dimclient_${_DIMCLIENT}_all.deb" > ./python3-dimclient_${_DIMCLIENT}_all.deb - dpkg -i ./python3-dimclient_${_DIMCLIENT}_all.deb - apt-get install -fy - - run: python3 gendoc.py > gendoc.txt - working-directory: ndcli/doc - - run: sphinx-build -b man doc doc/_build/man - working-directory: ndcli - - run: cp -vr packaging/debian/ndcli/* ndcli/ - - run: dch --create --package ndcli --newversion ${{ needs.build.outputs.version }} --distribution unstable 'release update' - working-directory: ndcli - env: - DEBMAIL: unknown - - run: dpkg-buildpackage -us -uc -b - working-directory: ndcli - - uses: actions/upload-artifact@v4 - with: - name: ndcli_${{ needs.build.outputs.version }}_all.deb - path: ndcli_${{ needs.build.outputs.version }}_all.deb create_release: runs-on: ubuntu-latest needs: - build - - debian - - el8 - - el9 - - fedora steps: - uses: actions/checkout@v4 - uses: actions/create-release@v1 @@ -342,18 +61,6 @@ jobs: - uses: actions/download-artifact@v4 with: name: ndcli-src-${{ needs.build.outputs.version }}.tar.gz - - uses: actions/download-artifact@v4 - with: - name: python3-ndcli-${{ needs.build.outputs.version }}-1.el8.x86_64.rpm - - uses: actions/download-artifact@v4 - with: - name: python3-ndcli-${{ needs.build.outputs.version }}-1.el9.x86_64.rpm - - uses: actions/download-artifact@v4 - with: - name: python3-ndcli-${{ needs.build.outputs.version }}-1.fc40.x86_64.rpm - - uses: actions/download-artifact@v4 - with: - name: ndcli_${{ needs.build.outputs.version }}_all.deb - uses: actions/upload-release-asset@v1 env: @@ -363,35 +70,3 @@ jobs: asset_path: ndcli-src-${{ needs.build.outputs.version }}.tar.gz asset_name: ndcli-src-${{ needs.build.outputs.version }}.tar.gz asset_content_type: application/zip - - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ndcli_${{ needs.build.outputs.version }}_all.deb - asset_name: ndcli_${{ needs.build.outputs.version }}_all.deb - asset_content_type: application/vnd.debian.binary-package - - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: python3-ndcli-${{ needs.build.outputs.version }}-1.el8.x86_64.rpm - asset_name: python3-ndcli-${{ needs.build.outputs.version }}-1.el8.x86_64.rpm - asset_content_type: application/octet-stream - - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: python3-ndcli-${{ needs.build.outputs.version }}-1.el9.x86_64.rpm - asset_name: python3-ndcli-${{ needs.build.outputs.version }}-1.el9.x86_64.rpm - asset_content_type: application/octet-stream - - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: python3-ndcli-${{ needs.build.outputs.version }}-1.fc40.x86_64.rpm - asset_name: python3-ndcli-${{ needs.build.outputs.version }}-1.fc40.x86_64.rpm - asset_content_type: application/octet-stream