Skip to content

Commit

Permalink
update release workflows to new github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
miesi-ionos committed Jul 26, 2024
1 parent b1ddabe commit 3dac221
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 53 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/release_dim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- run: tar --transform="s,^dim/,dim-${_version}/," -czf "dim-src-${_version}.tar.gz" dim
env:
_version: ${{ steps.version.outputs.version }}
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: dim-src-${{ steps.version.outputs.version }}.tar.gz
path: dim-src-${{ steps.version.outputs.version }}.tar.gz
Expand All @@ -47,13 +47,13 @@ jobs:
_VERSION: ${{ needs.build.outputs.version }}
steps:
- run: /bin/dnf install --assumeyes gcc python39-devel mariadb-devel git python39 rpm-build tar gzip
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: dim-src-${{ needs.build.outputs.version }}.tar.gz
path: /tmp/
- run: tar -xzf dim-src-${{ needs.build.outputs.version }}.tar.gz
working-directory: /tmp
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: /bin/python3.9 -m venv /opt/dim/
- run: /opt/dim/bin/pip3 install -r dim/requirements.txt
- run: /opt/dim/bin/pip3 install ./dim
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
EOF
- run: cp /tmp/dim-bin.tar.gz ${HOME}/rpmbuild/SOURCES/dim-${_VERSION}.tar.gz
- run: rpmbuild -ba ${HOME}/rpmbuild/SPECS/dim.spec
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: dim-${{ needs.build.outputs.version }}-1.el8.x86_64.rpm
path: ~/rpmbuild/RPMS/x86_64/dim-${{ needs.build.outputs.version }}-1.el8.x86_64.rpm
Expand All @@ -114,13 +114,13 @@ jobs:
_VERSION: ${{ needs.build.outputs.version }}
steps:
- run: /bin/dnf install --assumeyes gcc python3-devel mariadb-devel git python3 rpm-build tar gzip
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: dim-src-${{ needs.build.outputs.version }}.tar.gz
path: /tmp/
- run: tar -xzf dim-src-${{ needs.build.outputs.version }}.tar.gz
working-directory: /tmp
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: /bin/python3 -m venv /opt/dim/
- run: /opt/dim/bin/pip3 install -r dim/requirements.txt
- run: /opt/dim/bin/pip3 install ./dim
Expand Down Expand Up @@ -167,7 +167,7 @@ jobs:
EOF
- run: cp /tmp/dim-bin.tar.gz ${HOME}/rpmbuild/SOURCES/dim-${_VERSION}.tar.gz
- run: rpmbuild -ba ${HOME}/rpmbuild/SPECS/dim.spec
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: dim-${{ needs.build.outputs.version }}-1.el9.x86_64.rpm
path: ~/rpmbuild/RPMS/x86_64/dim-${{ needs.build.outputs.version }}-1.el9.x86_64.rpm
Expand All @@ -180,7 +180,7 @@ jobs:
env:
_VERSION: ${{ needs.build.outputs.version }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: apt-get update
- run: apt-get install --yes build-essential python3 python3-dnspython dh-python python3-setuptools python3-all debhelper python3-flask-sqlalchemy devscripts
- run: cp -vr packaging/debian/dim/* dim/
Expand All @@ -190,7 +190,7 @@ jobs:
DEBMAIL: unknown <unknown@unknown>
- run: dpkg-buildpackage -us -uc -b
working-directory: dim
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: python3-dim_${{ needs.build.outputs.version }}_all.deb
path: python3-dim_${{ needs.build.outputs.version }}_all.deb
Expand All @@ -203,7 +203,7 @@ jobs:
- el8
- el9
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/create-release@v1
id: create_release
env:
Expand All @@ -213,13 +213,13 @@ jobs:
release_name: ${{ github.ref }}
draft: true

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: dim-src-${{ needs.build.outputs.version }}.tar.gz
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: dim-${{ needs.build.outputs.version }}-1.el8.x86_64.rpm
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: python3-dim_${{ needs.build.outputs.version }}_all.deb

Expand All @@ -231,15 +231,15 @@ jobs:
asset_path: dim-src-${{ needs.build.outputs.version }}.tar.gz
asset_name: dim-src-${{ needs.build.outputs.version }}.tar.gz
asset_content_type: application/zip
- uses: actions/upload-release-asset@v1
- uses: actions/upload-release-asset@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: python3-dim_${{ needs.build.outputs.version }}_all.deb
asset_name: python3-dim_${{ needs.build.outputs.version }}_all.deb
asset_content_type: application/vnd.debian.binary-package
- uses: actions/upload-release-asset@v1
- uses: actions/upload-release-asset@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
38 changes: 19 additions & 19 deletions .github/workflows/release_dimclient.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
shell: bash
env:
_REF: ${{ github.ref }}
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: tar --transform="s,^dimclient/,dimclient-${_version}/," -czf "dimclient-src-${_version}.tar.gz" dimclient
env:
_version: ${{ steps.version.outputs.version }}
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: dimclient-src-${{ steps.version.outputs.version }}.tar.gz
path: dimclient-src-${{ steps.version.outputs.version }}.tar.gz
Expand All @@ -37,10 +37,10 @@ jobs:
_VERSION: ${{ needs.build.outputs.version }}
steps:
- run: /bin/dnf install --assumeyes python3-devel python3 rpm-build python3-dns tar gzip git
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: mkdir -p ${HOME}/rpmbuild/SPECS
- run: mkdir -p ${HOME}/rpmbuild/SOURCES
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: dimclient-src-${{ needs.build.outputs.version }}.tar.gz
path: ~/rpmbuild/SOURCES/
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
%{python3_sitelib}/*
EOF
- run: rpmbuild -ba ${HOME}/rpmbuild/SPECS/dimclient.spec
- uses: actions/upload-artifact@v2
- 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
Expand All @@ -93,10 +93,10 @@ jobs:
_VERSION: ${{ needs.build.outputs.version }}
steps:
- run: /bin/dnf install --assumeyes python3-devel python3 rpm-build python3-dns tar gzip git
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: mkdir -p ${HOME}/rpmbuild/SPECS
- run: mkdir -p ${HOME}/rpmbuild/SOURCES
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: dimclient-src-${{ needs.build.outputs.version }}.tar.gz
path: ~/rpmbuild/SOURCES/
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
%{python3_sitelib}/*
EOF
- run: rpmbuild -ba ${HOME}/rpmbuild/SPECS/dimclient.spec
- uses: actions/upload-artifact@v2
- 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
Expand All @@ -151,11 +151,11 @@ jobs:
env:
_VERSION: ${{ needs.build.outputs.version }}
steps:
- uses: actions/checkout@v2
- 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@v2
- uses: actions/download-artifact@v4
with:
name: dimclient-src-${{ needs.build.outputs.version }}.tar.gz
path: ~/rpmbuild/SOURCES/
Expand Down Expand Up @@ -194,7 +194,7 @@ jobs:
%{python3_sitelib}/*
EOF
- run: rpmbuild -ba ${HOME}/rpmbuild/SPECS/dimclient.spec
- uses: actions/upload-artifact@v2
- 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
Expand All @@ -207,7 +207,7 @@ jobs:
env:
_VERSION: ${{ needs.build.outputs.version }}
steps:
- uses: actions/checkout@v2
- 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/
Expand All @@ -217,7 +217,7 @@ jobs:
DEBMAIL: unknown <unknown@unknown>
- run: dpkg-buildpackage -us -uc -b
working-directory: dimclient
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: python3-dimclient_${{ needs.build.outputs.version }}_all.deb
path: python3-dimclient_${{ needs.build.outputs.version }}_all.deb
Expand All @@ -231,7 +231,7 @@ jobs:
- el9
- fedora
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/create-release@v1
id: create_release
env:
Expand All @@ -241,19 +241,19 @@ jobs:
release_name: ${{ github.ref }}
draft: true

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: dimclient-src-${{ needs.build.outputs.version }}.tar.gz
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: python3-dimclient-${{ needs.build.outputs.version }}-1.el8.x86_64.rpm
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: python3-dimclient-${{ needs.build.outputs.version }}-1.el9.x86_64.rpm
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: python3-dimclient-${{ needs.build.outputs.version }}-1.fc40.x86_64.rpm
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: python3-dimclient_${{ needs.build.outputs.version }}_all.deb

Expand Down
Loading

0 comments on commit 3dac221

Please sign in to comment.